pub struct VerificationRequest { /* private fields */ }
Expand description

An object controlling key verification requests.

Interactive verification flows usually start with a verification request, this object lets you send and reply to such a verification request.

After the initial handshake the verification flow transitions into one of the verification methods.

Implementations

Create an event content that can be sent as a room event to request verification from the other side. This should be used only for verifications of other users and it should be sent to a room we consider to be a DM with the other user.

Our own user id.

The id of the other user that is participating in this verification request.

The id of the other device that is participating in this verification.

Get the room id if the verification is happening inside a room.

Get info about the cancellation if the verification request has been cancelled.

Has the verification request been answered by another device.

Is the verification request ready to start a verification flow.

Has the verification flow timed out.

Get the supported verification methods of the other side.

Will be present only if the other side requested the verification or if we’re in the ready state.

Get our own supported verification methods that we advertised.

Will be present only we requested the verification or if we’re in the ready state.

Get the unique ID of this verification request

Is this a verification that is veryfying one of our own devices

Did we initiate the verification request

Has the verification flow that was started with this request finished.

Has the verification flow that was started with this request been cancelled.

Accept the verification request signaling that our client supports the given verification methods.

Arguments
  • methods - The methods that we should advertise as supported by us.

Accept the verification request.

This method will accept the request and signal that it supports the m.sas.v1, the m.qr_code.show.v1, and m.reciprocate.v1 method.

m.qr_code.show.v1 will only be signaled if the qrcode feature is enabled. This feature is disabled by default. If it’s enabled and QR code scanning should be supported or QR code showing shouldn’t be supported the accept_with_methods() method should be used instead.

Cancel the verification request

Transition from this verification request into a SAS verification flow.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more