pub enum HexOrBase32ParseError {
Base32(DecodeError),
Hex(FromHexError),
}
Available on crate feature
base32
only.Expand description
Error when parsing a hex or base32 string.
Variants§
Base32(DecodeError)
Error when decoding the base32.
Hex(FromHexError)
Error when decoding the public key.
Trait Implementations§
Source§impl Debug for HexOrBase32ParseError
impl Debug for HexOrBase32ParseError
Source§impl Display for HexOrBase32ParseError
impl Display for HexOrBase32ParseError
Source§impl Error for HexOrBase32ParseError
impl Error for HexOrBase32ParseError
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<DecodeError> for HexOrBase32ParseError
impl From<DecodeError> for HexOrBase32ParseError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromHexError> for HexOrBase32ParseError
impl From<FromHexError> for HexOrBase32ParseError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<HexOrBase32ParseError> for KeyParsingError
Available on crate feature key
only.
impl From<HexOrBase32ParseError> for KeyParsingError
Available on crate feature
key
only.Source§fn from(source: HexOrBase32ParseError) -> Self
fn from(source: HexOrBase32ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HexOrBase32ParseError
impl RefUnwindSafe for HexOrBase32ParseError
impl Send for HexOrBase32ParseError
impl Sync for HexOrBase32ParseError
impl Unpin for HexOrBase32ParseError
impl UnwindSafe for HexOrBase32ParseError
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