pub enum ArmorParseError {
InvalidHeaderFormat(String),
InvalidHeaderParam(String, String),
WrongStructure,
Base85,
Base64,
NonEmptyChecksumParams,
MultipleChecksums,
UnparsableChecksum(Error),
MismatchedChecksum,
UnrecognizedHeader(String),
}
Variants§
InvalidHeaderFormat(String)
armored header has invalid format (“{0}”).
InvalidHeaderParam(String, String)
armored header ‘{0}’ has invalid parameter ‘{1}’.
WrongStructure
the provided text doesn’t contain recognizable ASCII-armored encoding.
Base85
ASCII armor data has invalid Base85 encoding.
Base64
ASCII armor data has invalid Base64 encoding.
NonEmptyChecksumParams
header providing checksum for the armored data must not contain additional parameters.
MultipleChecksums
multiple checksum headers provided.
UnparsableChecksum(Error)
ASCII armor contains unparsable checksum. Details: {0}
MismatchedChecksum
ASCII armor checksum doesn’t match the actual data.
UnrecognizedHeader(String)
unrecognized header ‘{0}’ in ASCII armor.
Trait Implementations§
Source§impl Clone for ArmorParseError
impl Clone for ArmorParseError
Source§fn clone(&self) -> ArmorParseError
fn clone(&self) -> ArmorParseError
Returns a duplicate 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 ArmorParseError
impl Debug for ArmorParseError
Source§impl Display for ArmorParseError
impl Display for ArmorParseError
Source§impl Error for ArmorParseError
impl Error for ArmorParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ArmorParseError> for String
impl From<ArmorParseError> for String
Source§fn from(err: ArmorParseError) -> Self
fn from(err: ArmorParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ArmorParseError
impl From<Error> for ArmorParseError
Source§impl PartialEq for ArmorParseError
impl PartialEq for ArmorParseError
impl Eq for ArmorParseError
impl StructuralPartialEq for ArmorParseError
Auto Trait Implementations§
impl Freeze for ArmorParseError
impl RefUnwindSafe for ArmorParseError
impl Send for ArmorParseError
impl Sync for ArmorParseError
impl Unpin for ArmorParseError
impl UnwindSafe for ArmorParseError
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