pub struct CancellableDeadline { /* private fields */ }Expand description
A deadline that can also be cancelled before it expires.
Pass Self::deadline wherever a query deadline is accepted. Call
Self::cancel from any thread to stop the query at its next check
point; it then fails exactly as if its deadline had passed. Dropping
the handle forgets the cancellation.
Implementations§
Trait Implementations§
Source§impl Debug for CancellableDeadline
impl Debug for CancellableDeadline
Source§impl Drop for CancellableDeadline
impl Drop for CancellableDeadline
Auto Trait Implementations§
impl Freeze for CancellableDeadline
impl RefUnwindSafe for CancellableDeadline
impl Send for CancellableDeadline
impl Sync for CancellableDeadline
impl Unpin for CancellableDeadline
impl UnsafeUnpin for CancellableDeadline
impl UnwindSafe for CancellableDeadline
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more