pub enum FromSliceIdentityTypeError {
InvalidLength(usize),
IdentityTypeError(IdentityTypeError),
}
Expand description
Error while reading IdentityType
from a byte slice.
Variants§
InvalidLength(usize)
Expected the slice to be IDENTITY_TYPE_LENGTH
bytes long, got this length instead.
IdentityTypeError(IdentityTypeError)
Error in IdentityType
.
Trait Implementations§
source§impl Debug for FromSliceIdentityTypeError
impl Debug for FromSliceIdentityTypeError
source§impl From<FromSliceIdentityTypeError> for FromStrIdentityTypeError
impl From<FromSliceIdentityTypeError> for FromStrIdentityTypeError
source§fn from(err: FromSliceIdentityTypeError) -> Self
fn from(err: FromSliceIdentityTypeError) -> Self
Converts to this type from the input type.
source§impl From<IdentityTypeError> for FromSliceIdentityTypeError
impl From<IdentityTypeError> for FromSliceIdentityTypeError
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 FromSliceIdentityTypeError
impl RefUnwindSafe for FromSliceIdentityTypeError
impl Send for FromSliceIdentityTypeError
impl Sync for FromSliceIdentityTypeError
impl Unpin for FromSliceIdentityTypeError
impl UnwindSafe for FromSliceIdentityTypeError
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