[][src]Enum custom_codes::GenericOutcome

pub enum GenericOutcome<Reason> {
    Success(Reason),
    Failure(Reason),
    Forward(Reason),
}

Give the Generic Outcome of an operation with custom result as a generic

Examples

let foo = GenericOutcome::Success("Foo");

Variants

Success(Reason)

Result of Operation completed successfully

Failure(Reason)

Result of Operation produced an error

Forward(Reason)

The result of the operation was forwarded to another operation

Trait Implementations

impl<Reason: Clone> Clone for GenericOutcome<Reason>[src]

impl<Reason: Debug> Debug for GenericOutcome<Reason>[src]

impl<'de, Reason> Deserialize<'de> for GenericOutcome<Reason> where
    Reason: Deserialize<'de>, 
[src]

impl<Reason: Eq> Eq for GenericOutcome<Reason>[src]

impl<Reason: PartialEq> PartialEq<GenericOutcome<Reason>> for GenericOutcome<Reason>[src]

impl<Reason> Serialize for GenericOutcome<Reason> where
    Reason: Serialize
[src]

impl<Reason> StructuralEq for GenericOutcome<Reason>[src]

impl<Reason> StructuralPartialEq for GenericOutcome<Reason>[src]

Auto Trait Implementations

impl<Reason> RefUnwindSafe for GenericOutcome<Reason> where
    Reason: RefUnwindSafe

impl<Reason> Send for GenericOutcome<Reason> where
    Reason: Send

impl<Reason> Sync for GenericOutcome<Reason> where
    Reason: Sync

impl<Reason> Unpin for GenericOutcome<Reason> where
    Reason: Unpin

impl<Reason> UnwindSafe for GenericOutcome<Reason> where
    Reason: UnwindSafe

Blanket Implementations

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

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

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

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

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.