[][src]Enum custom_codes::Outcome

pub enum Outcome<R> {
    Success,
    Failure(R),
    Forward,
}

Give the Outcome of an operation

Variants

Success

Result of Operation completed successfully

Failure(R)

Result of Operation produced an error

Forward

The result of the operation was forwarded to another operation

Trait Implementations

impl<R: Clone> Clone for Outcome<R>[src]

impl<R: Eq> Eq for Outcome<R>[src]

impl<R: PartialEq> PartialEq<Outcome<R>> for Outcome<R>[src]

impl<R: Debug> Debug for Outcome<R>[src]

impl<R> Serialize for Outcome<R> where
    R: Serialize
[src]

impl<'de, R> Deserialize<'de> for Outcome<R> where
    R: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<R> Send for Outcome<R> where
    R: Send

impl<R> Sync for Outcome<R> where
    R: Sync

impl<R> Unpin for Outcome<R> where
    R: Unpin

impl<R> UnwindSafe for Outcome<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Outcome<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]