pub enum ReadAnyError {
Pkcs7(Pkcs7Error),
Pkcs12Parse(Error),
Pkcs12Crypto(Box<dyn Error + Send + Sync>),
Pkcs12Format(&'static str),
}Expand description
Error returned by read_pki_blocks on structural or decryption failure.
Variants§
Pkcs7(Pkcs7Error)
PKCS#7 parse or structure error.
Pkcs12Parse(Error)
PKCS#12 ASN.1 structural parse error.
Pkcs12Crypto(Box<dyn Error + Send + Sync>)
PKCS#12 decryption failed (wrong password or unsupported algorithm).
Pkcs12Format(&'static str)
PKCS#12 unsupported format variant.
Trait Implementations§
Source§impl Debug for ReadAnyError
impl Debug for ReadAnyError
Source§impl Display for ReadAnyError
impl Display for ReadAnyError
Source§impl Error for ReadAnyError
impl Error for ReadAnyError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ReadAnyError
impl !UnwindSafe for ReadAnyError
impl Freeze for ReadAnyError
impl Send for ReadAnyError
impl Sync for ReadAnyError
impl Unpin for ReadAnyError
impl UnsafeUnpin for ReadAnyError
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