Enum ruma_events::key::verification::cancel::CancelCode [−][src]
#[non_exhaustive] pub enum CancelCode { User, Timeout, UnknownTransaction, UnknownMethod, UnexpectedMessage, KeyMismatch, UserMismatch, InvalidMessage, Accepted, // some variants omitted }
Expand description
An error code for why the process/request was cancelled by the user.
Custom error codes should use the Java package naming convention.
This type can hold an arbitrary string. To check for events that are not
available as a documented variant here, use its string representation,
obtained through .as_str()
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The user cancelled the verification.
The verification process timed out. Verification processes can define their own timeout parameters.
The device does not know about the given transaction ID.
The device does not know how to handle the requested method.
This should be sent for m.key.verification.start messages and messages defined by individual verification processes.
The device received an unexpected message.
Typically raised when one of the parties is handling the verification out of order.
The key was not verified.
The expected user did not match the user verified.
The message received was invalid.
An m.key.verification.request was accepted by a different device.
The device receiving this error can ignore the verification request.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CancelCode
impl Send for CancelCode
impl Sync for CancelCode
impl Unpin for CancelCode
impl UnwindSafe for CancelCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more