pub struct AcceptedProtocols {
pub key_agreement_protocol: KeyAgreementProtocol,
pub hash: HashAlgorithm,
pub message_auth_code: SupportedMacMethod,
pub short_auth_string: Vec<ShortAuthenticationString>,
}Available on crate feature
e2e-encryption only.Expand description
Struct containing the protocols that were agreed to be used for the SAS flow.
Fields§
§key_agreement_protocol: KeyAgreementProtocolThe key agreement protocol the device is choosing to use.
hash: HashAlgorithmThe hash method the device is choosing to use.
message_auth_code: SupportedMacMethodThe 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 duplicate 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§fn default() -> AcceptedProtocols
fn default() -> AcceptedProtocols
Returns the “default value” for a type. Read more
Source§impl PartialEq for AcceptedProtocols
impl PartialEq for AcceptedProtocols
Source§impl TryFrom<&SasV1Content> for AcceptedProtocols
impl TryFrom<&SasV1Content> for AcceptedProtocols
Source§type Error = CancelCode
type Error = CancelCode
The type returned in the event of a conversion error.
Source§fn try_from(
method_content: &SasV1Content,
) -> Result<AcceptedProtocols, <AcceptedProtocols as TryFrom<&SasV1Content>>::Error>
fn try_from( method_content: &SasV1Content, ) -> Result<AcceptedProtocols, <AcceptedProtocols as TryFrom<&SasV1Content>>::Error>
Performs the conversion.
Source§impl TryFrom<SasV1Content> for AcceptedProtocols
impl TryFrom<SasV1Content> for AcceptedProtocols
Source§type Error = CancelCode
type Error = CancelCode
The type returned in the event of a conversion error.
Source§fn try_from(
content: SasV1Content,
) -> Result<AcceptedProtocols, <AcceptedProtocols as TryFrom<SasV1Content>>::Error>
fn try_from( content: SasV1Content, ) -> Result<AcceptedProtocols, <AcceptedProtocols as TryFrom<SasV1Content>>::Error>
Performs the conversion.
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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