[][src]Struct market::Recall

pub struct Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
{ /* fields omitted */ }

Returns a good that a Producer failed to produce.

Implementations

impl<G, T> Recall<G, T> where
    G: Debug,
    T: Error
[src]

pub fn new(good: G, failure: ProduceFailure<T>) -> Self[src]

Creates a new Recall.

pub fn overstock(self) -> Result<G, T>[src]

Returns the recalled good if self is the result of a full stock; otherwise throws the fault.

Trait Implementations

impl<G: Debug, T: Debug> Debug for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G, T> Display for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G: Eq, T: Eq> Eq for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G, T> Error for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G: Hash, T: Hash> Hash for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G: PartialEq, T: PartialEq> PartialEq<Recall<G, T>> for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G, T> StructuralEq for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

impl<G, T> StructuralPartialEq for Recall<G, T> where
    G: Debug,
    T: Error + 'static, 
[src]

Auto Trait Implementations

impl<G, T> RefUnwindSafe for Recall<G, T> where
    G: RefUnwindSafe,
    T: RefUnwindSafe

impl<G, T> Send for Recall<G, T> where
    G: Send,
    T: Send

impl<G, T> Sync for Recall<G, T> where
    G: Sync,
    T: Sync

impl<G, T> Unpin for Recall<G, T> where
    G: Unpin,
    T: Unpin

impl<G, T> UnwindSafe for Recall<G, T> where
    G: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

impl<N, S> AssembleInto<S> for N where
    S: AssembleFrom<N>, 
[src]

type Error = <S as AssembleFrom<N>>::Error

The type of the error that could be thrown during assembly.

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

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

impl<N, S> DisassembleInto<N> for S where
    N: DisassembleFrom<S>, 
[src]

type Error = <N as DisassembleFrom<S>>::Error

The type of the error that could be thrown during disassembly.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.