pub enum Error {
Cms(Error),
Encoding {
field: &'static str,
cause: Error,
},
Pkix(Error),
Syntax {
code: ErrorCode,
field: &'static str,
at: u64,
},
Resource {
at: u64,
cause: MemoryError,
field: &'static str,
},
Foreign {
at: u64,
},
}Expand description
Terminal processing refusal, distinct from a completed format finding.
Variants§
Cms(Error)
Original common CMS failure, preserving all underlying diagnostics.
Encoding
Original ASN.1 failure, without changing its coordinates or cause.
Fields
Pkix(Error)
Shared PKIX schema/DER refusal, preserving its field and location.
Syntax
Format schema failure at an actual original value.
Fields
Resource
Current work/storage refused before use at this original position.
Fields
§
cause: MemoryErrorExact refusal, never converted to missing material.
Foreign
A receipt or selected model belongs to another original source.
Implementations§
Trait Implementations§
Source§impl From<Error> for SelectionError
impl From<Error> for SelectionError
Source§impl From<Error> for SelectionError
impl From<Error> for SelectionError
Auto Trait Implementations§
impl !Freeze for Error
impl Forget for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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