pub enum PublicKeyDecodingError {
InvalidPemEncoding(String),
UnexpectedPemLabel(String),
InvalidKeyEncoding(String),
}Expand description
An invalid key was encountered
Variants§
InvalidPemEncoding(String)
The outer PEM encoding is invalid
UnexpectedPemLabel(String)
The PEM label was not the expected value
InvalidKeyEncoding(String)
The encoding of the public key is invalid, the string contains details
Trait Implementations§
Source§impl Clone for PublicKeyDecodingError
impl Clone for PublicKeyDecodingError
Source§fn clone(&self) -> PublicKeyDecodingError
fn clone(&self) -> PublicKeyDecodingError
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 PublicKeyDecodingError
impl Debug for PublicKeyDecodingError
Source§impl Display for PublicKeyDecodingError
impl Display for PublicKeyDecodingError
Source§impl Error for PublicKeyDecodingError
impl Error for PublicKeyDecodingError
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 PublicKeyDecodingError
impl RefUnwindSafe for PublicKeyDecodingError
impl Send for PublicKeyDecodingError
impl Sync for PublicKeyDecodingError
impl Unpin for PublicKeyDecodingError
impl UnwindSafe for PublicKeyDecodingError
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