pub enum ConsignmentConstraintError {
Serialize(SerializeError),
Deserialize(DeserializeError),
TypeInvariant,
}Expand description
Error returned when a consignment fails the structural strict-encoding
constraint check performed by UncheckedConsignment::into_checked.
Variants§
Serialize(SerializeError)
consignment violates a strict-encoding constraint: {0}
Deserialize(DeserializeError)
consignment violates a strict-encoding constraint: {0}
TypeInvariant
consignment contains a value that violates a low-level type invariant.
Trait Implementations§
Source§impl Debug for ConsignmentConstraintError
impl Debug for ConsignmentConstraintError
Source§impl Display for ConsignmentConstraintError
impl Display for ConsignmentConstraintError
Source§impl Error for ConsignmentConstraintError
impl Error for ConsignmentConstraintError
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<ConsignmentConstraintError> for String
impl From<ConsignmentConstraintError> for String
Source§fn from(err: ConsignmentConstraintError) -> String
fn from(err: ConsignmentConstraintError) -> String
Converts to this type from the input type.
Source§impl From<DeserializeError> for ConsignmentConstraintError
impl From<DeserializeError> for ConsignmentConstraintError
Source§fn from(v: DeserializeError) -> ConsignmentConstraintError
fn from(v: DeserializeError) -> ConsignmentConstraintError
Converts to this type from the input type.
Source§impl From<SerializeError> for ConsignmentConstraintError
impl From<SerializeError> for ConsignmentConstraintError
Source§fn from(v: SerializeError) -> ConsignmentConstraintError
fn from(v: SerializeError) -> ConsignmentConstraintError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ConsignmentConstraintError
impl !UnwindSafe for ConsignmentConstraintError
impl Freeze for ConsignmentConstraintError
impl Send for ConsignmentConstraintError
impl Sync for ConsignmentConstraintError
impl Unpin for ConsignmentConstraintError
impl UnsafeUnpin for ConsignmentConstraintError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type