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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyDecodingError
impl RefUnwindSafe for KeyDecodingError
impl Send for KeyDecodingError
impl Sync for KeyDecodingError
impl Unpin for KeyDecodingError
impl UnsafeUnpin 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