pub enum FromStrSecretKeyError {
DecodeError(FromHexError),
InvalidByteLength(usize),
}
Expand description
Error while parsing SecretKey
from a string.
Variants§
DecodeError(FromHexError)
Error while decoding the string.
InvalidByteLength(usize)
Expected the string to encode SECRET_KEY_LENGTH
bytes, got this many bytes instead.
Trait Implementations§
source§impl Debug for FromStrSecretKeyError
impl Debug for FromStrSecretKeyError
source§impl From<FromHexError> for FromStrSecretKeyError
impl From<FromHexError> for FromStrSecretKeyError
source§fn from(err: FromHexError) -> Self
fn from(err: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<FromSliceSecretKeyError> for FromStrSecretKeyError
impl From<FromSliceSecretKeyError> for FromStrSecretKeyError
source§fn from(err: FromSliceSecretKeyError) -> Self
fn from(err: FromSliceSecretKeyError) -> Self
Converts to this type from the input type.
source§impl From<FromStrSecretKeyError> for FromStrIdentityError
impl From<FromStrSecretKeyError> for FromStrIdentityError
source§fn from(err: FromStrSecretKeyError) -> Self
fn from(err: FromStrSecretKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromStrSecretKeyError
impl RefUnwindSafe for FromStrSecretKeyError
impl Send for FromStrSecretKeyError
impl Sync for FromStrSecretKeyError
impl Unpin for FromStrSecretKeyError
impl UnwindSafe for FromStrSecretKeyError
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