pub struct DerError(/* private fields */);Expand description
Opaque wrapper around an underlying ASN.1 / DER error.
Carries a Display message identical to the wrapped der::Error so
diagnostic output is preserved, but does not expose the underlying type
in the public API. This insulates callers from semver-breaking changes
in the der crate’s error variants.
Construction is crate-private. The only way to obtain a DerError is
via Error::Der (and the From<der::Error> impl on Error).
Trait Implementations§
Source§impl Error for DerError
Available on crate feature std only.
impl Error for DerError
Available on crate feature
std only.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()
impl Eq for DerError
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