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