Enum tari_utilities::byte_array::ByteArrayError
source · pub enum ByteArrayError {
ConversionError {
reason: String,
},
IncorrectLength {},
}
Expand description
Errors for ByteArray trait.
Variants§
ConversionError
An array can’t be parsed.
IncorrectLength
Fields
The lenght doesn’t fit to the array.
Trait Implementations§
source§impl Debug for ByteArrayError
impl Debug for ByteArrayError
source§impl Display for ByteArrayError
impl Display for ByteArrayError
source§impl ErrorCompat for ByteArrayError
impl ErrorCompat for ByteArrayError
source§fn iter_chain(&self) -> ChainCompat<'_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_>where Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moresource§impl PartialEq for ByteArrayError
impl PartialEq for ByteArrayError
source§fn eq(&self, other: &ByteArrayError) -> bool
fn eq(&self, other: &ByteArrayError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ByteArrayError
impl StructuralEq for ByteArrayError
impl StructuralPartialEq for ByteArrayError
Auto Trait Implementations§
impl RefUnwindSafe for ByteArrayError
impl Send for ByteArrayError
impl Sync for ByteArrayError
impl Unpin for ByteArrayError
impl UnwindSafe for ByteArrayError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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