#[repr(u8)]pub enum LinkKeyType {
CombinationKey = 0,
DebugCombinationKey = 3,
UnauthenticatedCombinationKeyP192 = 4,
AuthenticatedCombinationKeyP192 = 5,
ChangedCombinationKey = 6,
UnauthenticatedCombinationKeyP256 = 7,
AuthenticatedCombinationKeyP256 = 8,
}
Expand description
LinkKeyType
Variants§
CombinationKey = 0
Combination Key
DebugCombinationKey = 3
Debug Combination Key
UnauthenticatedCombinationKeyP192 = 4
Unauthenticated Combination Key generated from P-192
AuthenticatedCombinationKeyP192 = 5
Authenticated Combination Key generated from P-192
ChangedCombinationKey = 6
Changed Combination Key
UnauthenticatedCombinationKeyP256 = 7
Unauthenticated Combination Key generated from P-256
AuthenticatedCombinationKeyP256 = 8
Authenticated Combination Key generated from P-256
Trait Implementations§
Source§impl ByteAlignedValue for LinkKeyType
impl ByteAlignedValue for LinkKeyType
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 LinkKeyType
impl Clone for LinkKeyType
Source§fn clone(&self) -> LinkKeyType
fn clone(&self) -> LinkKeyType
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 LinkKeyType
impl Debug for LinkKeyType
Source§impl FixedSizeValue for LinkKeyType
impl FixedSizeValue for LinkKeyType
Source§impl<'de> FromHciBytes<'de> for &'de LinkKeyType
impl<'de> FromHciBytes<'de> for &'de LinkKeyType
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 LinkKeyType
impl Hash for LinkKeyType
Source§impl Ord for LinkKeyType
impl Ord for LinkKeyType
Source§fn cmp(&self, other: &LinkKeyType) -> Ordering
fn cmp(&self, other: &LinkKeyType) -> 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 PartialEq for LinkKeyType
impl PartialEq for LinkKeyType
Source§impl PartialOrd for LinkKeyType
impl PartialOrd for LinkKeyType
impl Copy for LinkKeyType
impl Eq for LinkKeyType
impl StructuralPartialEq for LinkKeyType
Auto Trait Implementations§
impl Freeze for LinkKeyType
impl RefUnwindSafe for LinkKeyType
impl Send for LinkKeyType
impl Sync for LinkKeyType
impl Unpin for LinkKeyType
impl UnwindSafe for LinkKeyType
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.