[−][src]Struct market::VigilantConsumer
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]
C: Consumer,
I: Inspector<Good = <C as Consumer>::Good> + Debug,
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.
fn consume(&self) -> Result<Self::Good, ConsumeError<Self::Failure>>
[src]
fn consume_all(&self) -> Result<Vec<Self::Good>, ConsumeError<Self::Failure>>
[src]
fn demand(&self) -> Result<Self::Good, Self::Failure>
[src]
fn adapt<G, F>(self) -> Adapter<Self, G, F> where
Self: Sized,
[src]
Self: Sized,
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,
C: RefUnwindSafe,
I: RefUnwindSafe,
impl<C, I> Send for VigilantConsumer<C, I> where
C: Send,
I: Send,
C: Send,
I: Send,
impl<C, I> Sync for VigilantConsumer<C, I> where
C: Sync,
I: Sync,
C: Sync,
I: Sync,
impl<C, I> Unpin for VigilantConsumer<C, I> where
C: Unpin,
I: Unpin,
C: Unpin,
I: Unpin,
impl<C, I> UnwindSafe for VigilantConsumer<C, I> where
C: UnwindSafe,
I: UnwindSafe,
C: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,