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§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§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.
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§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