pub enum FromStrIdentityError {
InvalidPartCount(usize),
InvalidAddress(FromStrAddressError),
InvalidIdentityType(FromStrIdentityTypeError),
InvalidPublicKey(FromStrPublicKeyError),
InvalidSecretKey(FromStrSecretKeyError),
}
Expand description
Error while parsing Identity
from a string.
Variants§
InvalidPartCount(usize)
Expected 3 or 4 parts separated by :
, got this many instead.
InvalidAddress(FromStrAddressError)
Error while parsing the Address
part.
InvalidIdentityType(FromStrIdentityTypeError)
Error while parsing the IdentityType
part.
InvalidPublicKey(FromStrPublicKeyError)
Error while parsing the PublicKey
part.
InvalidSecretKey(FromStrSecretKeyError)
Error while parsing the SecretKey
part.
Trait Implementations§
source§impl Debug for FromStrIdentityError
impl Debug for FromStrIdentityError
source§impl From<AddressError> for FromStrIdentityError
impl From<AddressError> for FromStrIdentityError
source§fn from(err: AddressError) -> Self
fn from(err: AddressError) -> Self
Converts to this type from the input type.
source§impl From<Error> for FromStrIdentityError
impl From<Error> for FromStrIdentityError
source§fn from(err: PublicKeyError) -> Self
fn from(err: PublicKeyError) -> Self
Converts to this type from the input type.
source§impl From<FromStrAddressError> for FromStrIdentityError
impl From<FromStrAddressError> for FromStrIdentityError
source§fn from(err: FromStrAddressError) -> Self
fn from(err: FromStrAddressError) -> Self
Converts to this type from the input type.
source§impl From<FromStrIdentityTypeError> for FromStrIdentityError
impl From<FromStrIdentityTypeError> for FromStrIdentityError
source§fn from(err: FromStrIdentityTypeError) -> Self
fn from(err: FromStrIdentityTypeError) -> 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.
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.
source§impl From<IdentityTypeError> for FromStrIdentityError
impl From<IdentityTypeError> for FromStrIdentityError
source§fn from(err: IdentityTypeError) -> Self
fn from(err: IdentityTypeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromStrIdentityError
impl !RefUnwindSafe for FromStrIdentityError
impl Send for FromStrIdentityError
impl Sync for FromStrIdentityError
impl Unpin for FromStrIdentityError
impl !UnwindSafe for FromStrIdentityError
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