[−][src]Struct market::StrippingProducer
A Producer
of type P
that produces parts stripped from goods of type G
.
Implementations
impl<G, P> StrippingProducer<G, P> where
P: Producer,
<P as Producer>::Good: Debug,
[src]
P: Producer,
<P as Producer>::Good: Debug,
pub fn new(producer: P) -> Self
[src]
Creates a new StrippingProducer
.
Trait Implementations
impl<G: Debug, P: Debug> Debug for StrippingProducer<G, P> where
P: Producer,
<P as Producer>::Good: Debug,
[src]
P: Producer,
<P as Producer>::Good: Debug,
impl<G, P> Producer for StrippingProducer<G, P> where
P: Producer,
G: Debug + Display,
<P as Producer>::Good: StripFrom<G> + Clone + Debug,
<P as Producer>::Failure: Error,
[src]
P: Producer,
G: Debug + Display,
<P as Producer>::Good: StripFrom<G> + Clone + Debug,
<P as Producer>::Failure: Error,
type Good = G
The type of the item being produced.
type Failure = <P as Producer>::Failure
The type of the error that could be thrown during production.
fn produce(&self, good: Self::Good) -> Result<(), ProduceError<Self::Failure>>
[src]
fn produce_or_recall(
&self,
good: Self::Good
) -> Result<(), Recall<Self::Good, Self::Failure>> where
Self::Good: Clone + Debug + Display,
[src]
&self,
good: Self::Good
) -> Result<(), Recall<Self::Good, Self::Failure>> where
Self::Good: Clone + Debug + Display,
fn force(&self, good: Self::Good) -> Result<(), Self::Failure> where
Self::Good: Clone + Debug + Display,
[src]
Self::Good: Clone + Debug + Display,
fn force_all(&self, goods: Vec<Self::Good>) -> Result<(), Self::Failure> where
Self::Good: Clone + Debug + Display,
[src]
Self::Good: Clone + Debug + Display,
Auto Trait Implementations
impl<G, P> !RefUnwindSafe for StrippingProducer<G, P>
impl<G, P> Send for StrippingProducer<G, P> where
G: Send,
P: Send,
<P as Producer>::Good: Send,
G: Send,
P: Send,
<P as Producer>::Good: Send,
impl<G, P> !Sync for StrippingProducer<G, P>
impl<G, P> Unpin for StrippingProducer<G, P> where
G: Unpin,
P: Unpin,
<P as Producer>::Good: Unpin,
G: Unpin,
P: Unpin,
<P as Producer>::Good: Unpin,
impl<G, P> UnwindSafe for StrippingProducer<G, P> where
G: UnwindSafe,
P: UnwindSafe,
<P as Producer>::Good: UnwindSafe,
G: UnwindSafe,
P: UnwindSafe,
<P as Producer>::Good: 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>,