Struct matrix_sdk_crypto::AcceptedProtocols
source · pub struct AcceptedProtocols {
pub key_agreement_protocol: KeyAgreementProtocol,
pub hash: HashAlgorithm,
pub message_auth_code: SupportedMacMethod,
pub short_auth_string: Vec<ShortAuthenticationString>,
}
Expand description
Struct containing the protocols that were agreed to be used for the SAS flow.
Fields§
§key_agreement_protocol: KeyAgreementProtocol
The key agreement protocol the device is choosing to use.
hash: HashAlgorithm
The hash method the device is choosing to use.
message_auth_code: SupportedMacMethod
The message authentication code the device is choosing to use
short_auth_string: Vec<ShortAuthenticationString>
The SAS methods both devices involved in the verification process understand.
Trait Implementations§
source§impl Clone for AcceptedProtocols
impl Clone for AcceptedProtocols
source§fn clone(&self) -> AcceptedProtocols
fn clone(&self) -> AcceptedProtocols
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AcceptedProtocols
impl Debug for AcceptedProtocols
source§impl Default for AcceptedProtocols
impl Default for AcceptedProtocols
source§impl PartialEq for AcceptedProtocols
impl PartialEq for AcceptedProtocols
source§fn eq(&self, other: &AcceptedProtocols) -> bool
fn eq(&self, other: &AcceptedProtocols) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&SasV1Content> for AcceptedProtocols
impl TryFrom<&SasV1Content> for AcceptedProtocols
§type Error = CancelCode
type Error = CancelCode
The type returned in the event of a conversion error.
source§impl TryFrom<SasV1Content> for AcceptedProtocols
impl TryFrom<SasV1Content> for AcceptedProtocols
§type Error = CancelCode
type Error = CancelCode
The type returned in the event of a conversion error.
impl Eq for AcceptedProtocols
impl StructuralPartialEq for AcceptedProtocols
Auto Trait Implementations§
impl Freeze for AcceptedProtocols
impl RefUnwindSafe for AcceptedProtocols
impl Send for AcceptedProtocols
impl Sync for AcceptedProtocols
impl Unpin for AcceptedProtocols
impl UnwindSafe for AcceptedProtocols
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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>
Converts
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>
Converts
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