pub enum ConsignError {
TooManyTerminals,
InvalidSecretSealsNumber,
TooManyBundles,
MergeReveal(MergeRevealError),
Transition(UnrelatedTransition),
Concealed(BundleId, OpId),
}
Variants§
TooManyTerminals
unable to construct consignment: too many terminals provided.
InvalidSecretSealsNumber
unable to construct consignment: invalid number of secret seals.
TooManyBundles
unable to construct consignment: history size too large, resulting in too many transitions.
MergeReveal(MergeRevealError)
Transition(UnrelatedTransition)
Concealed(BundleId, OpId)
the spent state from transition {1} inside bundle {0} is concealed.
Trait Implementations§
Source§impl Clone for ConsignError
impl Clone for ConsignError
Source§fn clone(&self) -> ConsignError
fn clone(&self) -> ConsignError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConsignError
impl Debug for ConsignError
Source§impl Display for ConsignError
impl Display for ConsignError
Source§impl Error for ConsignError
impl Error for ConsignError
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 From<ConsignError> for InputError
impl From<ConsignError> for InputError
Source§fn from(v: ConsignError) -> Self
fn from(v: ConsignError) -> Self
Converts to this type from the input type.
Source§impl<S: StashProvider, H: StateProvider, P: IndexProvider> From<ConsignError> for StockError<S, H, P, ConsignError>
impl<S: StashProvider, H: StateProvider, P: IndexProvider> From<ConsignError> for StockError<S, H, P, ConsignError>
Source§fn from(err: ConsignError) -> Self
fn from(err: ConsignError) -> Self
Converts to this type from the input type.
Source§impl From<ConsignError> for String
impl From<ConsignError> for String
Source§fn from(err: ConsignError) -> Self
fn from(err: ConsignError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for ConsignError
impl From<Infallible> for ConsignError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<MergeRevealError> for ConsignError
impl From<MergeRevealError> for ConsignError
Source§fn from(v: MergeRevealError) -> Self
fn from(v: MergeRevealError) -> Self
Converts to this type from the input type.
Source§fn from(v: UnrelatedTransition) -> Self
fn from(v: UnrelatedTransition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConsignError
impl PartialEq for ConsignError
impl Eq for ConsignError
impl StructuralPartialEq for ConsignError
Auto Trait Implementations§
impl Freeze for ConsignError
impl RefUnwindSafe for ConsignError
impl Send for ConsignError
impl Sync for ConsignError
impl Unpin for ConsignError
impl UnwindSafe for ConsignError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.