pub enum DerError {
Truncated,
InvalidLength,
UnexpectedTag,
TrailingData,
Unsupported,
}Expand description
Errors returned while reading DER-encoded data.
Variants§
Truncated
The input ended before a complete value could be read.
InvalidLength
A length used an unsupported or non-minimal encoding.
UnexpectedTag
A value had an unexpected tag or empty content.
TrailingData
The input had trailing bytes after the expected value(s).
Unsupported
A value used a DER feature this reader does not support.
Trait Implementations§
impl Copy for DerError
impl Eq for DerError
Source§impl Error for DerError
impl Error for DerError
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<DerError> for EcdsaError
impl From<DerError> for EcdsaError
Source§impl From<DerError> for Pkcs8Error
impl From<DerError> for Pkcs8Error
impl StructuralPartialEq for DerError
Auto Trait Implementations§
impl Freeze for DerError
impl RefUnwindSafe for DerError
impl Send for DerError
impl Sync for DerError
impl Unpin for DerError
impl UnsafeUnpin for DerError
impl UnwindSafe for DerError
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