pub enum PemError {
Io(Error),
UnsupportedKeyCurve(Vec<u8>),
PemError(PemError),
KeyRejected(KeyRejected),
ErrorStack(Error),
}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.