[][src]Struct market::VigilantConsumer

pub struct VigilantConsumer<C, I> { /* fields omitted */ }

Consumes goods that an Inspector has allowed.

Implementations

impl<C, I> VigilantConsumer<C, I>[src]

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

Creates a new VigilantConsumer.

Trait Implementations

impl<C, I> Consumer for VigilantConsumer<C, I> where
    C: Consumer,
    I: Inspector<Good = <C as Consumer>::Good> + Debug
[src]

type Good = <C as Consumer>::Good

The type of the item being consumed.

type Failure = <C as Consumer>::Failure

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

impl<C: Debug, I: Debug> Debug for VigilantConsumer<C, I>[src]

Auto Trait Implementations

impl<C, I> RefUnwindSafe for VigilantConsumer<C, I> where
    C: RefUnwindSafe,
    I: RefUnwindSafe

impl<C, I> Send for VigilantConsumer<C, I> where
    C: Send,
    I: Send

impl<C, I> Sync for VigilantConsumer<C, I> where
    C: Sync,
    I: Sync

impl<C, I> Unpin for VigilantConsumer<C, I> where
    C: Unpin,
    I: Unpin

impl<C, I> UnwindSafe for VigilantConsumer<C, I> where
    C: UnwindSafe,
    I: 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.