pub enum SasState {
Created {
protocols: SasV1Content,
},
Started {
protocols: SasV1Content,
},
Accepted {
accepted_protocols: AcceptedProtocols,
},
KeysExchanged {
emojis: Option<EmojiShortAuthString>,
decimals: (u16, u16, u16),
},
Confirmed,
Done {
verified_devices: Vec<DeviceData>,
verified_identities: Vec<UserIdentityData>,
},
Cancelled(CancelInfo),
}
Expand description
An Enum describing the state the SAS verification is in.
Variants§
Created
The verification has been created, the protocols that should be used have been proposed to the other party.
Fields
protocols: SasV1Content
The protocols that were proposed in the m.key.verification.start
event.
Started
The verification has been started, the other party proposed the protocols that should be used and that can be accepted.
Fields
protocols: SasV1Content
The protocols that were proposed in the m.key.verification.start
event.
Accepted
The verification has been accepted and both sides agreed to a set of protocols that will be used for the verification process.
Fields
accepted_protocols: AcceptedProtocols
The protocols that were accepted in the m.key.verification.accept
event.
KeysExchanged
The public keys have been exchanged and the short auth string can be presented to the user.
Fields
emojis: Option<EmojiShortAuthString>
The emojis that represent the short auth string, will be None
if
the emoji SAS method wasn’t part of the AcceptedProtocols
.
Confirmed
The verification process has been confirmed from our side, we’re waiting for the other side to confirm as well.
Done
The verification process has been successfully concluded.
Fields
verified_devices: Vec<DeviceData>
The list of devices that has been verified.
verified_identities: Vec<UserIdentityData>
The list of user identities that has been verified.
Cancelled(CancelInfo)
The verification process has been cancelled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SasState
impl RefUnwindSafe for SasState
impl Send for SasState
impl Sync for SasState
impl Unpin for SasState
impl UnwindSafe for SasState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more