pub struct TimeQ<EntryType: TimerEntryWithDelay> { /* private fields */ }
Expand description
A TimeQ is a queue datastructure where the contained items are time ordered. The underlying storage is a hashed hierarchical timer wheel, which allows for relatively cheap insertion and popping of ready items. It is also possible to cancel an entry given its id.
Implementations§
source§impl<EntryType: TimerEntryWithDelay> TimeQ<EntryType>
impl<EntryType: TimerEntryWithDelay> TimeQ<EntryType>
Auto Trait Implementations§
impl<EntryType> Freeze for TimeQ<EntryType>
impl<EntryType> RefUnwindSafe for TimeQ<EntryType>where
EntryType: RefUnwindSafe,
impl<EntryType> Send for TimeQ<EntryType>where
EntryType: Send,
impl<EntryType> Sync for TimeQ<EntryType>where
EntryType: Sync,
impl<EntryType> Unpin for TimeQ<EntryType>where
EntryType: Unpin,
impl<EntryType> UnwindSafe for TimeQ<EntryType>where
EntryType: 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