Enum armor::StrictArmorError
source · pub enum StrictArmorError {
MissedId,
MultipleIds,
InvalidId(Baid64ParseError),
MismatchedId {
actual: String,
expected: String,
},
Deserialize(DeserializeError),
TooLarge,
Armor(ArmorParseError),
}
Variants§
MissedId
ASCII armor misses required Id header.
MultipleIds
multiple Id headers.
InvalidId(Baid64ParseError)
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 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<Baid64ParseError> for StrictArmorError
impl From<Baid64ParseError> for StrictArmorError
source§fn from(v: Baid64ParseError) -> Self
fn from(v: Baid64ParseError) -> 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.
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