pub enum LibArmorError {
Armor(ArmorParseError),
TooLarge,
Decode(DeserializeError),
}
Available on crate feature
armor
only.Expand description
Errors while deserializing lib-old from an ASCII Armor.
Variants§
Armor(ArmorParseError)
Armor parse error.
TooLarge
The provided data exceed maximum possible lib-old size.
Decode(DeserializeError)
Library data deserialization error.
Trait Implementations§
Source§impl Clone for LibArmorError
impl Clone for LibArmorError
Source§fn clone(&self) -> LibArmorError
fn clone(&self) -> LibArmorError
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 LibArmorError
impl Debug for LibArmorError
Source§impl Display for LibArmorError
impl Display for LibArmorError
Source§impl Error for LibArmorError
impl Error for LibArmorError
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 LibArmorError
impl From<ArmorParseError> for LibArmorError
Source§fn from(v: ArmorParseError) -> Self
fn from(v: ArmorParseError) -> Self
Converts to this type from the input type.
Source§impl From<DeserializeError> for LibArmorError
impl From<DeserializeError> for LibArmorError
Source§fn from(v: DeserializeError) -> Self
fn from(v: DeserializeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for LibArmorError
impl From<Error> for LibArmorError
Source§impl From<LibArmorError> for String
impl From<LibArmorError> for String
Source§fn from(err: LibArmorError) -> Self
fn from(err: LibArmorError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LibArmorError
impl PartialEq for LibArmorError
impl Eq for LibArmorError
impl StructuralPartialEq for LibArmorError
Auto Trait Implementations§
impl Freeze for LibArmorError
impl !RefUnwindSafe for LibArmorError
impl Send for LibArmorError
impl Sync for LibArmorError
impl Unpin for LibArmorError
impl !UnwindSafe for LibArmorError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.