pub enum KeyDecodingError {
InvalidKeyEncoding(String),
InvalidPemEncoding(String),
UnexpectedPemLabel(String),
}Expand description
An error indicating that decoding a key failed
Variants§
InvalidKeyEncoding(String)
The key encoding was invalid in some way
InvalidPemEncoding(String)
The PEM encoding was invalid
UnexpectedPemLabel(String)
The PEM encoding had an unexpected label
Trait Implementations§
Source§impl Clone for KeyDecodingError
impl Clone for KeyDecodingError
Source§fn clone(&self) -> KeyDecodingError
fn clone(&self) -> KeyDecodingError
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 KeyDecodingError
impl Debug for KeyDecodingError
Source§impl Display for KeyDecodingError
impl Display for KeyDecodingError
Source§impl Error for KeyDecodingError
impl Error for KeyDecodingError
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 KeyDecodingError
impl RefUnwindSafe for KeyDecodingError
impl Send for KeyDecodingError
impl Sync for KeyDecodingError
impl Unpin for KeyDecodingError
impl UnwindSafe for KeyDecodingError
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