pub struct TimeoutHandle { /* private fields */ }
Implementations§
Source§impl TimeoutHandle
impl TimeoutHandle
Sourcepub fn cancel_ignored(self)
pub fn cancel_ignored(self)
Cancel a timeout. Returns immediately, sometimes prevents the timeout listener from running
Note we’ll return immediately, prior to cancelling the thread
Sourcepub async fn cancel(self) -> TimeoutResult
pub async fn cancel(self) -> TimeoutResult
Cancel a timeout if not already timed out and wait for the result
Sourcepub fn cancel_sync(self) -> TimeoutResult
pub fn cancel_sync(self) -> TimeoutResult
Cancel a timeout if not already timed out and wait for the result
Auto Trait Implementations§
impl Freeze for TimeoutHandle
impl !RefUnwindSafe for TimeoutHandle
impl Send for TimeoutHandle
impl Sync for TimeoutHandle
impl Unpin for TimeoutHandle
impl !UnwindSafe for TimeoutHandle
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