[−][src]Enum kyansel::futures_01::CancellableError
Error returned by Cancellable
Variants
If the inner future was cancelled
If the inner future just errored
Methods
impl<C, E> CancellableError<C, E>
[src]
pub fn is_cancelled(&self) -> bool
[src]
Check if the future was cancelled
pub fn errored(self) -> Option<E>
[src]
Retrieve the error of the future if it was not cancelled and it errored
pub fn cancelled(self) -> Option<C>
[src]
Retrieve the result of the canceller future if the future was cancelled
Trait Implementations
impl<C: Clone, E: Clone> Clone for CancellableError<C, E>
[src]
fn clone(&self) -> CancellableError<C, E>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Copy, E: Copy> Copy for CancellableError<C, E>
[src]
impl<C: Eq, E: Eq> Eq for CancellableError<C, E>
[src]
impl<C: PartialEq, E: PartialEq> PartialEq<CancellableError<C, E>> for CancellableError<C, E>
[src]
fn eq(&self, other: &CancellableError<C, E>) -> bool
[src]
fn ne(&self, other: &CancellableError<C, E>) -> bool
[src]
impl<C: Debug, E: Debug> Debug for CancellableError<C, E>
[src]
impl<C, E> StructuralPartialEq for CancellableError<C, E>
[src]
impl<C, E> StructuralEq for CancellableError<C, E>
[src]
Auto Trait Implementations
impl<C, E> Send for CancellableError<C, E> where
C: Send,
E: Send,
C: Send,
E: Send,
impl<C, E> Sync for CancellableError<C, E> where
C: Sync,
E: Sync,
C: Sync,
E: Sync,
impl<C, E> Unpin for CancellableError<C, E> where
C: Unpin,
E: Unpin,
C: Unpin,
E: Unpin,
impl<C, E> UnwindSafe for CancellableError<C, E> where
C: UnwindSafe,
E: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
impl<C, E> RefUnwindSafe for CancellableError<C, E> where
C: RefUnwindSafe,
E: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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,