pub enum PrivateKeyDecodingError {
InvalidPemEncoding(String),
UnexpectedPemLabel(String),
InvalidKeyEncoding(String),
}Expand description
An error if a private key cannot be decoded
Variants§
InvalidPemEncoding(String)
The outer PEM encoding is invalid
UnexpectedPemLabel(String)
The PEM label was not the expected value
InvalidKeyEncoding(String)
The private key seems invalid in some way; the string contains details
Trait Implementations§
Source§impl Clone for PrivateKeyDecodingError
impl Clone for PrivateKeyDecodingError
Source§fn clone(&self) -> PrivateKeyDecodingError
fn clone(&self) -> PrivateKeyDecodingError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrivateKeyDecodingError
impl Debug for PrivateKeyDecodingError
Source§impl Display for PrivateKeyDecodingError
impl Display for PrivateKeyDecodingError
Source§impl Error for PrivateKeyDecodingError
impl Error for PrivateKeyDecodingError
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 Freeze for PrivateKeyDecodingError
impl RefUnwindSafe for PrivateKeyDecodingError
impl Send for PrivateKeyDecodingError
impl Sync for PrivateKeyDecodingError
impl Unpin for PrivateKeyDecodingError
impl UnwindSafe for PrivateKeyDecodingError
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