#[non_exhaustive]pub enum TransferFromStrError {
InvalidPrefix,
Hex(DecodeError),
Length(TryFromSliceError),
}
Expand description
Error returned when decoding a TransferAddr
from a formatted string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidPrefix
The prefix is invalid.
Hex(DecodeError)
The address is not valid hex.
Length(TryFromSliceError)
The slice is the wrong length.
Trait Implementations§
source§impl Debug for FromStrError
impl Debug for FromStrError
source§impl Display for FromStrError
impl Display for FromStrError
source§impl From<DecodeError> for FromStrError
impl From<DecodeError> for FromStrError
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<FromStrError> for FromStrError
impl From<FromStrError> for FromStrError
source§fn from(error: TransferFromStrError) -> Self
fn from(error: TransferFromStrError) -> Self
Converts to this type from the input type.
source§impl From<TryFromSliceError> for FromStrError
impl From<TryFromSliceError> for FromStrError
source§fn from(error: TryFromSliceError) -> Self
fn from(error: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FromStrError
impl Send for FromStrError
impl Sync for FromStrError
impl Unpin for FromStrError
impl UnwindSafe for FromStrError
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