Enum age::armor::ArmoredReadError
source · pub enum ArmoredReadError {
Base64(DecodeSliceError),
InvalidBeginMarker,
InvalidUtf8,
LineContainsCr,
MissingPadding,
NotWrappedAt64Chars,
ShortLineInMiddle,
TrailingGarbage,
}
Expand description
The various errors that can be returned while parsing the armored format.
Variants§
Base64(DecodeSliceError)
An error occurred while parsing Base64.
InvalidBeginMarker
The begin marker for the armor is invalid.
InvalidUtf8
Invalid UTF-8 characters were encountered between the begin and end marker.
LineContainsCr
A line of the armor contains a \r
character.
MissingPadding
The final Base64 line is non-canonical.
NotWrappedAt64Chars
The armor is not wrapped at 64 characters.
ShortLineInMiddle
There is a short line in the middle of the armor (only the final line may be short).
TrailingGarbage
There are trailing non-whitespace characters after the end marker.
Trait Implementations§
source§impl Debug for ArmoredReadError
Available on crate feature armor
only.
impl Debug for ArmoredReadError
Available on crate feature
armor
only.source§impl Display for ArmoredReadError
Available on crate feature armor
only.
impl Display for ArmoredReadError
Available on crate feature
armor
only.source§impl Error for ArmoredReadError
Available on crate feature armor
only.
impl Error for ArmoredReadError
Available on crate feature
armor
only.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()
Auto Trait Implementations§
impl RefUnwindSafe for ArmoredReadError
impl Send for ArmoredReadError
impl Sync for ArmoredReadError
impl Unpin for ArmoredReadError
impl UnwindSafe for ArmoredReadError
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