Enum simple_asn1::ASN1DecodeErr
source · [−]pub enum ASN1DecodeErr {
EmptyBuffer,
BadBooleanLength(usize),
LengthTooLarge(usize),
UTF8DecodeFailure(Utf8Error),
PrintableStringDecodeFailure,
InvalidDateValue(String),
InvalidBitStringLength(isize),
InvalidClass(u8),
Incomplete,
// some variants omitted
}Expand description
An error that can arise decoding ASN.1 primitive blocks.
Variants
EmptyBuffer
BadBooleanLength(usize)
LengthTooLarge(usize)
UTF8DecodeFailure(Utf8Error)
PrintableStringDecodeFailure
InvalidDateValue(String)
InvalidBitStringLength(isize)
InvalidClass(u8)
Not a valid ASN.1 class
Incomplete
Expected more input
Invalid ASN.1 input can lead to this error.
Trait Implementations
sourceimpl Clone for ASN1DecodeErr
impl Clone for ASN1DecodeErr
sourcefn clone(&self) -> ASN1DecodeErr
fn clone(&self) -> ASN1DecodeErr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ASN1DecodeErr
impl Debug for ASN1DecodeErr
sourceimpl Display for ASN1DecodeErr
impl Display for ASN1DecodeErr
sourceimpl Error for ASN1DecodeErr
impl Error for ASN1DecodeErr
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl PartialEq<ASN1DecodeErr> for ASN1DecodeErr
impl PartialEq<ASN1DecodeErr> for ASN1DecodeErr
sourcefn eq(&self, other: &ASN1DecodeErr) -> bool
fn eq(&self, other: &ASN1DecodeErr) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ASN1DecodeErr) -> bool
fn ne(&self, other: &ASN1DecodeErr) -> bool
This method tests for !=.
impl StructuralPartialEq for ASN1DecodeErr
Auto Trait Implementations
impl RefUnwindSafe for ASN1DecodeErr
impl Send for ASN1DecodeErr
impl Sync for ASN1DecodeErr
impl Unpin for ASN1DecodeErr
impl UnwindSafe for ASN1DecodeErr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more