pub struct PriorityItem<T> { /* private fields */ }Expand description
One queued value together with its stable scheduling metadata.
Implementations§
Source§impl<T> PriorityItem<T>
impl<T> PriorityItem<T>
Sourcepub fn sequence(&self) -> u64
pub fn sequence(&self) -> u64
Monotonic insertion order used for FIFO scheduling within a priority.
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Consume the scheduling metadata and return the queued value.
Trait Implementations§
Source§impl<T: Debug> Debug for PriorityItem<T>
impl<T: Debug> Debug for PriorityItem<T>
impl<T> Eq for PriorityItem<T>
Source§impl<T> Ord for PriorityItem<T>
impl<T> Ord for PriorityItem<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialEq for PriorityItem<T>
impl<T> PartialEq for PriorityItem<T>
Source§impl<T> PartialOrd for PriorityItem<T>
impl<T> PartialOrd for PriorityItem<T>
Auto Trait Implementations§
impl<T> Freeze for PriorityItem<T>where
T: Freeze,
impl<T> RefUnwindSafe for PriorityItem<T>where
T: RefUnwindSafe,
impl<T> Send for PriorityItem<T>where
T: Send,
impl<T> Sync for PriorityItem<T>where
T: Sync,
impl<T> Unpin for PriorityItem<T>where
T: Unpin,
impl<T> UnsafeUnpin for PriorityItem<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PriorityItem<T>where
T: 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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.