[][src]Struct timeouts::TimeoutHandle

pub struct TimeoutHandle { /* fields omitted */ }

Implementations

impl TimeoutHandle[src]

pub fn cancel_ignored(self)[src]

Cancel a timeout. Returns immediately, sometimes prevents the timeout listener from running

Note we'll return immediately, prior to cancelling the thread

pub async fn cancel(self) -> TimeoutResult[src]

Cancel a timeout if not already timed out and wait for the result

pub fn cancel_sync(self) -> TimeoutResult[src]

Cancel a timeout if not already timed out and wait for the result

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.