pub enum DecodeSignatureError {
NoDot,
NoDotSig,
InvalidBase64(DecodeError),
UnknownSuffix,
Ed25519WrongSize,
}Expand description
Everything that can go wrong when decoding a signature from the legacy encoding.
Variants§
NoDot
Input did not contain a "." to separate the data from the suffix.
NoDotSig
Input did contain the mandatory “.sig”.
InvalidBase64(DecodeError)
The base64 portion of the key was invalid.
UnknownSuffix
The suffix is not known to this ssb implementation.
Ed25519WrongSize
The suffix declares an ed25519 signature, but the data length does not match.
Trait Implementations§
Source§impl Clone for DecodeSignatureError
impl Clone for DecodeSignatureError
Source§fn clone(&self) -> DecodeSignatureError
fn clone(&self) -> DecodeSignatureError
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 DecodeSignatureError
impl Debug for DecodeSignatureError
Source§impl Display for DecodeSignatureError
impl Display for DecodeSignatureError
Source§impl Error for DecodeSignatureError
impl Error for DecodeSignatureError
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 DecodeSignatureError
impl PartialEq for DecodeSignatureError
impl Eq for DecodeSignatureError
impl StructuralPartialEq for DecodeSignatureError
Auto Trait Implementations§
impl Freeze for DecodeSignatureError
impl RefUnwindSafe for DecodeSignatureError
impl Send for DecodeSignatureError
impl Sync for DecodeSignatureError
impl Unpin for DecodeSignatureError
impl UnwindSafe for DecodeSignatureError
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