Struct matrix_sdk::verification::SasVerification[][src]

pub struct SasVerification { /* fields omitted */ }
This is supported on encryption only.
Expand description

An object controlling the interactive verification flow.

Implementations

Accept the interactive verification flow.

Accept the interactive verification flow with specific settings.

Arguments

  • settings - specific customizations to the verification flow.

Examples

use matrix_sdk::verification::SasVerification;
use matrix_sdk_base::crypto::AcceptSettings;
use matrix_sdk::ruma::events::key::verification::ShortAuthenticationString;
let sas = client
    .get_verification(&user_id, flow_id)
    .await
    .unwrap()
    .sas()
    .unwrap();

let only_decimal = AcceptSettings::with_allowed_methods(
    vec![ShortAuthenticationString::Decimal]
);
sas.accept_with_settings(only_decimal).await.unwrap();

Confirm that the short auth strings match on both sides.

Cancel the interactive verification flow.

Get the emoji version of the short auth string.

Get the decimal version of the short auth string.

Does this verification flow support emoji for the short authentication string.

Is the verification process done.

Are we in a state where we can show the short auth string.

Did we initiate the verification flow.

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

Is the verification process canceled.

Get the other users device that we’re verifying.

Did this verification flow start from a verification request.

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

Get our own user id.

Get the user id of the other user participating in this 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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.