[−][src]Struct kyansel::Cancellable
Future for the cancel_with
combinator,
allowing a computation to be cancelled if a second computation completes succesfully.
If the future is cancelled it will complete as a
CancellableError::Cancelled
Created with FutureCancellable::cancel_with
or cancellable
Trait Implementations
impl<F: Debug, S: Debug> Debug for Cancellable<F, S> where
F: Future,
S: Future,
[src]
F: Future,
S: Future,
impl<F, S> Future for Cancellable<F, S> where
F: Future,
S: Future,
[src]
F: Future,
S: Future,
Auto Trait Implementations
impl<F, S> Send for Cancellable<F, S> where
F: Send,
S: Send,
F: Send,
S: Send,
impl<F, S> Sync for Cancellable<F, S> where
F: Sync,
S: Sync,
F: Sync,
S: Sync,
impl<F, S> Unpin for Cancellable<F, S> where
F: Unpin,
S: Unpin,
F: Unpin,
S: Unpin,
impl<F, S> UnwindSafe for Cancellable<F, S> where
F: UnwindSafe,
S: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
impl<F, S> RefUnwindSafe for Cancellable<F, S> where
F: RefUnwindSafe,
S: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> FutureCancellable for T where
T: Future + ?Sized,
[src]
T: Future + ?Sized,
ⓘImportant traits for Cancellable<F, S>fn cancel_with<S>(self, stopper: S) -> Cancellable<Self, S> where
S: Future,
Self: Sized,
[src]
ⓘImportant traits for Cancellable<F, S>
S: Future,
Self: Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,