[][src]Struct market::ApprovedProducer

pub struct ApprovedProducer<P, I> { /* fields omitted */ }

Produces goods that an Inspector has allowed.

Methods

impl<P, I> ApprovedProducer<P, I>[src]

pub const fn new(producer: P, inspector: I) -> Self[src]

Creates a new ApprovedProducer.

Trait Implementations

impl<P: Debug, I: Debug> Debug for ApprovedProducer<P, I>[src]

impl<P, I> Producer for ApprovedProducer<P, I> where
    P: Producer,
    I: Inspector<Good = <P as Producer>::Good>, 
[src]

type Good = <P as Producer>::Good

The item being produced.

type Error = <P as Producer>::Error

The error when Self is not functional. Read more

Auto Trait Implementations

impl<P, I> RefUnwindSafe for ApprovedProducer<P, I> where
    I: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, I> Send for ApprovedProducer<P, I> where
    I: Send,
    P: Send

impl<P, I> Sync for ApprovedProducer<P, I> where
    I: Sync,
    P: Sync

impl<P, I> Unpin for ApprovedProducer<P, I> where
    I: Unpin,
    P: Unpin

impl<P, I> UnwindSafe for ApprovedProducer<P, I> where
    I: UnwindSafe,
    P: 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<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.