pub enum PublicKeyHexError {
InvalidLength(usize),
InvalidHex(String),
}Expand description
Error type for PublicKeyHex construction.
Variants§
InvalidLength(usize)
The hex string has the wrong length (not 64 chars / 32 bytes).
InvalidHex(String)
The string contains non-hex characters.
Trait Implementations§
Source§impl Clone for PublicKeyHexError
impl Clone for PublicKeyHexError
Source§fn clone(&self) -> PublicKeyHexError
fn clone(&self) -> PublicKeyHexError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicKeyHexError
impl Debug for PublicKeyHexError
Source§impl Display for PublicKeyHexError
impl Display for PublicKeyHexError
Source§impl Error for PublicKeyHexError
impl Error for PublicKeyHexError
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 PartialEq for PublicKeyHexError
impl PartialEq for PublicKeyHexError
impl Eq for PublicKeyHexError
impl StructuralPartialEq for PublicKeyHexError
Auto Trait Implementations§
impl Freeze for PublicKeyHexError
impl RefUnwindSafe for PublicKeyHexError
impl Send for PublicKeyHexError
impl Sync for PublicKeyHexError
impl Unpin for PublicKeyHexError
impl UnsafeUnpin for PublicKeyHexError
impl UnwindSafe for PublicKeyHexError
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