pub enum Ed25519KeyError {
InvalidLength(usize),
InvalidHex(String),
}Expand description
Error type for Ed25519 public key construction.
Variants§
InvalidLength(usize)
The byte slice is not exactly 32 bytes.
InvalidHex(String)
The hex string is not valid.
Trait Implementations§
Source§impl Clone for Ed25519KeyError
impl Clone for Ed25519KeyError
Source§fn clone(&self) -> Ed25519KeyError
fn clone(&self) -> Ed25519KeyError
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 Ed25519KeyError
impl Debug for Ed25519KeyError
Source§impl Display for Ed25519KeyError
impl Display for Ed25519KeyError
Source§impl Error for Ed25519KeyError
impl Error for Ed25519KeyError
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 Ed25519KeyError
impl PartialEq for Ed25519KeyError
impl Eq for Ed25519KeyError
impl StructuralPartialEq for Ed25519KeyError
Auto Trait Implementations§
impl Freeze for Ed25519KeyError
impl RefUnwindSafe for Ed25519KeyError
impl Send for Ed25519KeyError
impl Sync for Ed25519KeyError
impl Unpin for Ed25519KeyError
impl UnsafeUnpin for Ed25519KeyError
impl UnwindSafe for Ed25519KeyError
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