[−][src]Struct futures_delay_queue::DelayHandle
A handle to cancel the corresponding delay of an item in DelayQueue
.
Methods
impl DelayHandle
[src]
pub async fn reset_at(self, when: Instant) -> Result<Self, ErrorAlreadyExpired>
[src]
Resets the delay of the corresponding item to when
and returns a new DelayHandle
on
success.
pub async fn reset(self, dur: Duration) -> Result<Self, ErrorAlreadyExpired>
[src]
Resets the delay of the corresponding item to now + dur
and returns a new DelayHandle
on
success.
pub async fn cancel(self) -> Result<(), ErrorAlreadyExpired>
[src]
Cancels the delay.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DelayHandle
impl Send for DelayHandle
impl Sync for DelayHandle
impl Unpin for DelayHandle
impl !UnwindSafe for DelayHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,