pub enum TypesError {
LengthMismatch {
expect: usize,
real: usize,
},
FromHex {
error: FromHexError,
},
InvalidAddress {
address: String,
},
}
Variants§
Trait Implementations§
Source§impl Debug for TypesError
impl Debug for TypesError
Source§impl Display for TypesError
impl Display for TypesError
Source§impl Error for TypesError
impl Error for TypesError
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<FromHexError> for TypesError
impl From<FromHexError> for TypesError
Source§fn from(original: FromHexError) -> TypesError
fn from(original: FromHexError) -> TypesError
Converts to this type from the input type.
Source§impl From<String> for TypesError
impl From<String> for TypesError
Source§fn from(original: String) -> TypesError
fn from(original: String) -> TypesError
Converts to this type from the input type.
Source§impl From<TypesError> for ProtocolError
impl From<TypesError> for ProtocolError
Source§fn from(error: TypesError) -> ProtocolError
fn from(error: TypesError) -> ProtocolError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypesError
impl RefUnwindSafe for TypesError
impl Send for TypesError
impl Sync for TypesError
impl Unpin for TypesError
impl UnwindSafe for TypesError
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