pub enum PemError {
Io(Error),
UnsupportedKeyCurve(Vec<u8>),
PemError(PemError),
KeyRejected(KeyRejected),
ErrorStack(Error),
}Available on crate feature
pem only.Expand description
An error happened while reading a PEM file.
Variants§
Io(Error)
An error occurred with disk I/O.
UnsupportedKeyCurve(Vec<u8>)
An unsupported curve was detected
PemError(PemError)
An error occurred while reading the file in PEM format.
KeyRejected(KeyRejected)
The key was rejected by Ring.
ErrorStack(Error)
The key was rejected by k256.
Trait Implementations§
source§impl Error for PemError
impl Error for PemError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<KeyRejected> for PemError
impl From<KeyRejected> for PemError
source§fn from(source: KeyRejected) -> Self
fn from(source: KeyRejected) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PemError
impl Send for PemError
impl Sync for PemError
impl Unpin for PemError
impl !UnwindSafe for PemError
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