pub enum ConsignerError<E1: Error, E2: Error> {
TooManyTerminals,
TooManyBundles,
ConcealedPublicState(Opout),
Reveal(RevealError),
InventoryError(InventoryError<E1>),
StashError(StashError<E2>),
}
Variants§
TooManyTerminals
unable to construct consignment: too many terminals provided.
TooManyBundles
unable to construct consignment: history size too large, resulting in too many transitions.
ConcealedPublicState(Opout)
public state at operation output {0} is concealed.
Reveal(RevealError)
InventoryError(InventoryError<E1>)
StashError(StashError<E2>)
Trait Implementations§
Source§impl<E1: Error, E2: Error> Error for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> Error for ConsignerError<E1, E2>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E1: Error, E2: Error> From<ConsignerError<E1, E2>> for String
impl<E1: Error, E2: Error> From<ConsignerError<E1, E2>> for String
Source§fn from(err: ConsignerError<E1, E2>) -> Self
fn from(err: ConsignerError<E1, E2>) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2: Error> From<InventoryError<E1>> for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> From<InventoryError<E1>> for ConsignerError<E1, E2>
Source§fn from(v: InventoryError<E1>) -> Self
fn from(v: InventoryError<E1>) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2: Error> From<InventoryInconsistency> for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> From<InventoryInconsistency> for ConsignerError<E1, E2>
Source§fn from(v: InventoryInconsistency) -> Self
fn from(v: InventoryInconsistency) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2: Error> From<RevealError> for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> From<RevealError> for ConsignerError<E1, E2>
Source§fn from(v: RevealError) -> Self
fn from(v: RevealError) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2: Error> From<StashError<E2>> for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> From<StashError<E2>> for ConsignerError<E1, E2>
Source§fn from(v: StashError<E2>) -> Self
fn from(v: StashError<E2>) -> Self
Converts to this type from the input type.
Source§impl<E1: Error, E2: Error> From<StashInconsistency> for ConsignerError<E1, E2>
impl<E1: Error, E2: Error> From<StashInconsistency> for ConsignerError<E1, E2>
Source§fn from(v: StashInconsistency) -> Self
fn from(v: StashInconsistency) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E1, E2> Freeze for ConsignerError<E1, E2>
impl<E1, E2> !RefUnwindSafe for ConsignerError<E1, E2>
impl<E1, E2> !Send for ConsignerError<E1, E2>
impl<E1, E2> !Sync for ConsignerError<E1, E2>
impl<E1, E2> Unpin for ConsignerError<E1, E2>
impl<E1, E2> !UnwindSafe for ConsignerError<E1, E2>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more