[−][src]Struct market::Recall
Returns a good that a Producer
failed to produce.
Implementations
impl<G, T> Recall<G, T> where
G: Debug,
T: Error,
[src]
G: Debug,
T: Error,
pub fn new(good: G, failure: ProduceFailure<T>) -> Self
[src]
Creates a new Recall
.
pub fn overstock(self) -> Result<G, T>
[src]
Returns the recalled good if self
is the result of a full stock; otherwise throws the fault.
Trait Implementations
impl<G: Debug, T: Debug> Debug for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
impl<G, T> Display for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
impl<G: Eq, T: Eq> Eq for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
impl<G, T> Error for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<G: Hash, T: Hash> Hash for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<G: PartialEq, T: PartialEq> PartialEq<Recall<G, T>> for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
impl<G, T> StructuralEq for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
impl<G, T> StructuralPartialEq for Recall<G, T> where
G: Debug,
T: Error + 'static,
[src]
G: Debug,
T: Error + 'static,
Auto Trait Implementations
impl<G, T> RefUnwindSafe for Recall<G, T> where
G: RefUnwindSafe,
T: RefUnwindSafe,
G: RefUnwindSafe,
T: RefUnwindSafe,
impl<G, T> Send for Recall<G, T> where
G: Send,
T: Send,
G: Send,
T: Send,
impl<G, T> Sync for Recall<G, T> where
G: Sync,
T: Sync,
G: Sync,
T: Sync,
impl<G, T> Unpin for Recall<G, T> where
G: Unpin,
T: Unpin,
G: Unpin,
T: Unpin,
impl<G, T> UnwindSafe for Recall<G, T> where
G: UnwindSafe,
T: UnwindSafe,
G: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<N, S> AssembleInto<S> for N where
S: AssembleFrom<N>,
[src]
S: AssembleFrom<N>,
type Error = <S as AssembleFrom<N>>::Error
The type of the error that could be thrown during assembly.
fn assemble_into(
components: &mut Vec<N>
) -> Result<S, AssembleFailure<<N as AssembleInto<S>>::Error>>
[src]
components: &mut Vec<N>
) -> Result<S, AssembleFailure<<N as AssembleInto<S>>::Error>>
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<N, S> DisassembleInto<N> for S where
N: DisassembleFrom<S>,
[src]
N: DisassembleFrom<S>,
type Error = <N as DisassembleFrom<S>>::Error
The type of the error that could be thrown during disassembly.
fn disassemble_into(self) -> Result<Vec<N>, <S as DisassembleInto<N>>::Error>
[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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,