Enum matrix_sdk_crypto::SignatureError
source · [−]pub enum SignatureError {
UnsupportedAlgorithm,
InvalidKeyId(IdParseError),
MissingSigningKey,
UserIdMismatch,
NotAnObject,
NoSignatureFound,
VerificationError(SignatureError),
InvalidKey(KeyError),
InvalidSignature,
JsonError(CanonicalJsonError),
}
Expand description
Error type describin different errors that happen when we check or create signatures for a Matrix JSON object.
Variants
UnsupportedAlgorithm
The signature was made using an unsupported algorithm.
InvalidKeyId(IdParseError)
The ID of the signing key isn’t a valid key ID.
MissingSigningKey
The signing key that should create or check a signature is missing.
UserIdMismatch
The user id of signing key differs from the user id that provided the signature.
NotAnObject
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
NoSignatureFound
The provided JSON value that was signed and the signature should be checked isn’t a valid JSON object.
VerificationError(SignatureError)
The signature couldn’t be verified.
InvalidKey(KeyError)
The public key isn’t a valid ed25519 key.
InvalidSignature
The signature could not be decoded.
JsonError(CanonicalJsonError)
The signed object couldn’t be deserialized.
Trait Implementations
sourceimpl Debug for SignatureError
impl Debug for SignatureError
sourceimpl Display for SignatureError
impl Display for SignatureError
sourceimpl Error for SignatureError
impl Error for SignatureError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for SignatureError
impl From<Error> for SignatureError
sourcefn from(source: IdParseError) -> Self
fn from(source: IdParseError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for SignatureError
impl From<Error> for SignatureError
sourcefn from(source: CanonicalJsonError) -> Self
fn from(source: CanonicalJsonError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for SignatureError
impl From<Error> for SignatureError
sourcefn from(e: SerdeError) -> Self
fn from(e: SerdeError) -> Self
Converts to this type from the input type.
sourceimpl From<KeyError> for SignatureError
impl From<KeyError> for SignatureError
sourceimpl From<SignatureError> for SignatureError
impl From<SignatureError> for SignatureError
sourcefn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for SignatureError
impl Send for SignatureError
impl Sync for SignatureError
impl Unpin for SignatureError
impl !UnwindSafe for SignatureError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more