pub enum ParseKeyError {
NotPem {
label: &'static str,
},
InvalidBase64,
UnsupportedFormat,
PublicKeyMismatch,
}Expand description
鍵が読めなかった理由。秘密鍵の一部を漏らさないように、どこの何が悪かったかは含めない。
Variants§
NotPem
-----BEGIN <label>----- と -----END <label>----- で挟まれていない
InvalidBase64
本体が Base64 として読めない
UnsupportedFormat
RFC 8410 の Ed25519 の鍵の形ではない
PublicKeyMismatch
PKCS#8 の v2 に入っている公開鍵が、秘密鍵から導いたものと違う
Trait Implementations§
Source§impl Clone for ParseKeyError
impl Clone for ParseKeyError
Source§fn clone(&self) -> ParseKeyError
fn clone(&self) -> ParseKeyError
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 moreSource§impl Debug for ParseKeyError
impl Debug for ParseKeyError
Source§impl Display for ParseKeyError
impl Display for ParseKeyError
impl Eq for ParseKeyError
Source§impl Error for ParseKeyError
impl Error for ParseKeyError
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()
Source§impl PartialEq for ParseKeyError
impl PartialEq for ParseKeyError
impl StructuralPartialEq for ParseKeyError
Auto Trait Implementations§
impl Freeze for ParseKeyError
impl RefUnwindSafe for ParseKeyError
impl Send for ParseKeyError
impl Sync for ParseKeyError
impl Unpin for ParseKeyError
impl UnsafeUnpin for ParseKeyError
impl UnwindSafe for ParseKeyError
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