pub enum PriorityQueueOutcome<T, P> {
Accepted {
depth: usize,
},
Rejected {
value: T,
priority: P,
reason: PriorityQueueRejection,
},
Released {
remaining: usize,
},
Empty,
}Expand description
Factual result of one priority-queue operation.
Variants§
Accepted
Value was accepted.
Rejected
Value was not accepted; ownership is returned.
Fields
§
value: TUnaccepted value.
§
priority: PExact priority from the rejected offer.
§
reason: PriorityQueueRejectionExhaustive reason.
Released
Highest-priority oldest-tie value was released.
Empty
No retained value was available.
Trait Implementations§
impl<T: Eq, P: Eq> Eq for PriorityQueueOutcome<T, P>
impl<T, P> StructuralPartialEq for PriorityQueueOutcome<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for PriorityQueueOutcome<T, P>
impl<T, P> RefUnwindSafe for PriorityQueueOutcome<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for PriorityQueueOutcome<T, P>
impl<T, P> Sync for PriorityQueueOutcome<T, P>
impl<T, P> Unpin for PriorityQueueOutcome<T, P>
impl<T, P> UnsafeUnpin for PriorityQueueOutcome<T, P>where
T: UnsafeUnpin,
P: UnsafeUnpin,
impl<T, P> UnwindSafe for PriorityQueueOutcome<T, P>where
T: UnwindSafe,
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more