[][src]Enum market::ProduceError

pub enum ProduceError<F: Error> {
    FullStock,
    Failure(F),
}

An error producing to a market.

Variants

FullStock

The stock of the market is full.

Failure(F)

A failure to produce a good.

Implementations

impl<F> ProduceError<F> where
    F: Error
[src]

pub fn map_into<E>(self) -> ProduceError<E> where
    E: Error + From<F>, 
[src]

Converts self into ProduceError<E>

Trait Implementations

impl<F: Debug + Error> Debug for ProduceError<F>[src]

impl<F: Error> Display for ProduceError<F>[src]

impl<F: Eq + Error> Eq for ProduceError<F>[src]

impl<F: Error> Error for ProduceError<F>[src]

impl<F> From<F> for ProduceError<F> where
    F: Error
[src]

impl<G> From<TrySendError<G>> for ProduceError<ClosedMarketFailure>[src]

impl<F: Hash + Error> Hash for ProduceError<F>[src]

impl<F: PartialEq + Error> PartialEq<ProduceError<F>> for ProduceError<F>[src]

impl<F: Error> StructuralEq for ProduceError<F>[src]

impl<F: Error> StructuralPartialEq for ProduceError<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for ProduceError<F> where
    F: RefUnwindSafe

impl<F> Send for ProduceError<F> where
    F: Send

impl<F> Sync for ProduceError<F> where
    F: Sync

impl<F> Unpin for ProduceError<F> where
    F: Unpin

impl<F> UnwindSafe for ProduceError<F> where
    F: 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> From<!> for T[src]

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.