pub struct Uninterruptible;Expand description
A no-op implementor of Interruptible that always returns false for interrupted.
Trait Implementations§
Source§impl Interruptible for Uninterruptible
impl Interruptible for Uninterruptible
Source§fn interrupted(&self) -> bool
fn interrupted(&self) -> bool
Returns whether the current operation should be cancelled.
Auto Trait Implementations§
impl Freeze for Uninterruptible
impl RefUnwindSafe for Uninterruptible
impl Send for Uninterruptible
impl Sync for Uninterruptible
impl Unpin for Uninterruptible
impl UnsafeUnpin for Uninterruptible
impl UnwindSafe for Uninterruptible
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> 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