Enum armor::StrictArmorError
source · pub enum StrictArmorError {
MissedId,
MultipleIds,
InvalidId(Baid58ParseError),
MismatchedId {
actual: String,
expected: String,
},
Deserialize(DeserializeError),
TooLarge,
Armor(ArmorParseError),
}
Variants§
MissedId
ASCII armor misses required Id header.
MultipleIds
multiple Id headers.
InvalidId(Baid58ParseError)
Id header of the ASCII armor contains unparsable information. Details: {0}
MismatchedId
the actual ASCII armor doesn’t match the provided id.
Actual id: {actual}.
Expected id: {expected}.
Deserialize(DeserializeError)
unable to decode the provided ASCII armor. Details: {0}
TooLarge
ASCII armor contains more than 16MB of data.
Armor(ArmorParseError)
Trait Implementations§
source§impl Clone for StrictArmorError
impl Clone for StrictArmorError
source§fn clone(&self) -> StrictArmorError
fn clone(&self) -> StrictArmorError
Returns a copy 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 StrictArmorError
impl Debug for StrictArmorError
source§impl Display for StrictArmorError
impl Display for StrictArmorError
source§impl Error for StrictArmorError
impl Error for StrictArmorError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<ArmorParseError> for StrictArmorError
impl From<ArmorParseError> for StrictArmorError
source§fn from(v: ArmorParseError) -> Self
fn from(v: ArmorParseError) -> Self
Converts to this type from the input type.
source§impl From<Baid58ParseError> for StrictArmorError
impl From<Baid58ParseError> for StrictArmorError
source§fn from(v: Baid58ParseError) -> Self
fn from(v: Baid58ParseError) -> Self
Converts to this type from the input type.
source§impl From<DeserializeError> for StrictArmorError
impl From<DeserializeError> for StrictArmorError
source§fn from(v: DeserializeError) -> Self
fn from(v: DeserializeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for StrictArmorError
impl From<Error> for StrictArmorError
source§impl From<StrictArmorError> for String
impl From<StrictArmorError> for String
source§fn from(err: StrictArmorError) -> Self
fn from(err: StrictArmorError) -> Self
Converts to this type from the input type.
source§impl PartialEq for StrictArmorError
impl PartialEq for StrictArmorError
source§fn eq(&self, other: &StrictArmorError) -> bool
fn eq(&self, other: &StrictArmorError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StrictArmorError
impl StructuralPartialEq for StrictArmorError
Auto Trait Implementations§
impl Freeze for StrictArmorError
impl !RefUnwindSafe for StrictArmorError
impl Send for StrictArmorError
impl Sync for StrictArmorError
impl Unpin for StrictArmorError
impl !UnwindSafe for StrictArmorError
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