Struct futures_delay_queue::DelayQueue
source · [−]pub struct DelayQueue<T: 'static, A: RingBuf<Item = T>> { /* private fields */ }Expand description
A queue for managing delayed items.
Implementations
sourceimpl<T, A> DelayQueue<T, A> where
T: 'static + Send,
A: 'static + RingBuf<Item = T> + Send,
impl<T, A> DelayQueue<T, A> where
T: 'static + Send,
A: 'static + RingBuf<Item = T> + Send,
sourcepub fn insert(&self, value: T, dur: Duration) -> DelayHandle
pub fn insert(&self, value: T, dur: Duration) -> DelayHandle
Inserts an item into the delay queue that will be yielded after dur has passed.
sourcepub fn insert_at(&self, value: T, when: Instant) -> DelayHandle
pub fn insert_at(&self, value: T, when: Instant) -> DelayHandle
Inserts an item into the delay queue that will be yielded at when.
Trait Implementations
sourceimpl<T: Clone + 'static, A: Clone + RingBuf<Item = T>> Clone for DelayQueue<T, A>
impl<T: Clone + 'static, A: Clone + RingBuf<Item = T>> Clone for DelayQueue<T, A>
sourcefn clone(&self) -> DelayQueue<T, A>
fn clone(&self) -> DelayQueue<T, A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<T, A> !RefUnwindSafe for DelayQueue<T, A>
impl<T, A> Send for DelayQueue<T, A> where
A: Send,
T: Send,
impl<T, A> Sync for DelayQueue<T, A> where
A: Send,
T: Send,
impl<T, A> Unpin for DelayQueue<T, A>
impl<T, A> !UnwindSafe for DelayQueue<T, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more