#[repr(u8)]pub enum AuthenticationRequirements {
MitmNotRequiredNoBonding = 0,
MitmRequiredNoBonding = 1,
MitmNotRequiredDedicatedBonding = 2,
MitmRequiredDedicatedBonding = 3,
MitmNotRequiredGeneralBonding = 4,
MitmRequiredGeneralBonding = 5,
}
Expand description
AuthenticationRequirements
Variants§
MitmNotRequiredNoBonding = 0
MITM Protection Not Required – No Bonding. Numeric comparison with automatic accept allowed.
MitmRequiredNoBonding = 1
MITM Protection Required – No Bonding. Use IO Capabilities to determine authentication procedure
MitmNotRequiredDedicatedBonding = 2
MITM Protection Not Required – Dedicated Bonding. Numeric comparison with automatic accept allowed.
MitmRequiredDedicatedBonding = 3
MITM Protection Required – Dedicated Bonding. Use IO Capabilities to determine authentication procedure
MitmNotRequiredGeneralBonding = 4
MITM Protection Not Required – General Bonding. Numeric Comparison with automatic accept allowed.
MitmRequiredGeneralBonding = 5
MITM Protection Required – General Bonding. Use IO capabilities to determine authentication procedure.
Trait Implementations§
Source§impl ByteAlignedValue for AuthenticationRequirements
impl ByteAlignedValue for AuthenticationRequirements
Source§fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
Obtain a reference to this type from a byte slice. Read more
Source§impl Clone for AuthenticationRequirements
impl Clone for AuthenticationRequirements
Source§fn clone(&self) -> AuthenticationRequirements
fn clone(&self) -> AuthenticationRequirements
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 AuthenticationRequirements
impl Debug for AuthenticationRequirements
Source§impl<'de> FromHciBytes<'de> for &'de AuthenticationRequirements
impl<'de> FromHciBytes<'de> for &'de AuthenticationRequirements
Source§fn from_hci_bytes(
data: &'de [u8],
) -> Result<(Self, &'de [u8]), FromHciBytesError>
fn from_hci_bytes( data: &'de [u8], ) -> Result<(Self, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl Hash for AuthenticationRequirements
impl Hash for AuthenticationRequirements
Source§impl Ord for AuthenticationRequirements
impl Ord for AuthenticationRequirements
Source§fn cmp(&self, other: &AuthenticationRequirements) -> Ordering
fn cmp(&self, other: &AuthenticationRequirements) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AuthenticationRequirements
impl PartialOrd for AuthenticationRequirements
impl Copy for AuthenticationRequirements
impl Eq for AuthenticationRequirements
impl StructuralPartialEq for AuthenticationRequirements
Auto Trait Implementations§
impl Freeze for AuthenticationRequirements
impl RefUnwindSafe for AuthenticationRequirements
impl Send for AuthenticationRequirements
impl Sync for AuthenticationRequirements
impl Unpin for AuthenticationRequirements
impl UnwindSafe for AuthenticationRequirements
Blanket Implementations§
Source§impl<T> AsHciBytes for Twhere
T: FixedSizeValue,
impl<T> AsHciBytes for Twhere
T: FixedSizeValue,
Source§fn as_hci_bytes(&self) -> &[u8]
fn as_hci_bytes(&self) -> &[u8]
Get the byte representation of this type.
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<'de, T> FromHciBytes<'de> for Twhere
T: FixedSizeValue,
impl<'de, T> FromHciBytes<'de> for Twhere
T: FixedSizeValue,
Source§fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl<'de, T> ReadHci<'de> for Twhere
T: FixedSizeValue,
impl<'de, T> ReadHci<'de> for Twhere
T: FixedSizeValue,
Source§const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();
const MAX_LEN: usize = const MAX_LEN: usize = core::mem::size_of::<Self>();
Max length read by this type.
Source§fn read_hci<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
fn read_hci<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
Read this type from the provided reader.
Source§async fn read_hci_async<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
async fn read_hci_async<R>(
reader: R,
buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
R: Read,
Read this type from the provided reader, async version.