Trait market::Failure[][src]

pub trait Failure: Sized {
    type Fault: TryFrom<Self>;
    fn fault(self) -> Option<Self::Fault> { ... }
}

Specifies a failure to successfully complete an action.

Associated Types

type Fault: TryFrom<Self>[src]

Describes the possible faults of Self.

Loading content...

Provided methods

fn fault(self) -> Option<Self::Fault>[src]

Attempts to convert self into a Self::Fault.

If self cannot be converted into a fault, SHALL return None.

Loading content...

Implementations on Foreign Types

impl Failure for Infallible[src]

Infallible SHALL implement Failure.

type Fault = Self

Loading content...

Implementors

impl Failure for InsufficientStockFailure[src]

impl<G: DisassembleInto<u8>> Failure for WriteFault<G>[src]

type Fault = Self

impl<T> Failure for ProduceFailure<T> where
    T: TryFrom<Self>, 
[src]

type Fault = T

impl<T: TryFrom<Self>> Failure for ConsumeFailure<T>[src]

type Fault = T

Loading content...