pub enum OutcomeError<E> {
Err(E),
Cancelled(CancelReason),
Panicked(PanicPayload),
}Expand description
Error type for converting Outcome to Result.
Variants§
Trait Implementations§
Source§impl<E: Clone> Clone for OutcomeError<E>
impl<E: Clone> Clone for OutcomeError<E>
Source§fn clone(&self) -> OutcomeError<E>
fn clone(&self) -> OutcomeError<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for OutcomeError<E>
impl<E: Debug> Debug for OutcomeError<E>
Source§impl<'de, E> Deserialize<'de> for OutcomeError<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for OutcomeError<E>where
E: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Display> Display for OutcomeError<E>
impl<E: Display> Display for OutcomeError<E>
Source§impl<E: Debug + Display> Error for OutcomeError<E>
impl<E: Debug + Display> Error for OutcomeError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<E> Freeze for OutcomeError<E>where
E: Freeze,
impl<E> RefUnwindSafe for OutcomeError<E>where
E: RefUnwindSafe,
impl<E> Send for OutcomeError<E>where
E: Send,
impl<E> Sync for OutcomeError<E>where
E: Sync,
impl<E> Unpin for OutcomeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for OutcomeError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for OutcomeError<E>where
E: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).