pub struct ExtendedLmpFeatures(/* private fields */);Expand description
Return parameters of the Read Local/Remote Extended Features commands.
Implementations§
Source§impl ExtendedLmpFeatures
impl ExtendedLmpFeatures
Sourcepub fn lmp_feature_page(&self) -> LmpFeaturePage
pub fn lmp_feature_page(&self) -> LmpFeaturePage
Returns the feature page.
Sourcepub fn max_page_number(&self) -> u8
pub fn max_page_number(&self) -> u8
Returns the maximum page number containing non-zero bits.
Sourcepub fn page_number(&self) -> u8
pub fn page_number(&self) -> u8
Returns the page number of the returned features.
Trait Implementations§
Source§impl Clone for ExtendedLmpFeatures
impl Clone for ExtendedLmpFeatures
Source§fn clone(&self) -> ExtendedLmpFeatures
fn clone(&self) -> ExtendedLmpFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtendedLmpFeatures
impl Debug for ExtendedLmpFeatures
Source§impl FixedSizeValue for ExtendedLmpFeatures
impl FixedSizeValue for ExtendedLmpFeatures
Source§impl Hash for ExtendedLmpFeatures
impl Hash for ExtendedLmpFeatures
Source§impl Ord for ExtendedLmpFeatures
impl Ord for ExtendedLmpFeatures
Source§fn cmp(&self, other: &ExtendedLmpFeatures) -> Ordering
fn cmp(&self, other: &ExtendedLmpFeatures) -> Ordering
1.21.0 (const: unstable) · 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 ExtendedLmpFeatures
impl PartialEq for ExtendedLmpFeatures
Source§fn eq(&self, other: &ExtendedLmpFeatures) -> bool
fn eq(&self, other: &ExtendedLmpFeatures) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ExtendedLmpFeatures
impl PartialOrd for ExtendedLmpFeatures
impl Copy for ExtendedLmpFeatures
impl Eq for ExtendedLmpFeatures
impl StructuralPartialEq for ExtendedLmpFeatures
Auto Trait Implementations§
impl Freeze for ExtendedLmpFeatures
impl RefUnwindSafe for ExtendedLmpFeatures
impl Send for ExtendedLmpFeatures
impl Sync for ExtendedLmpFeatures
impl Unpin for ExtendedLmpFeatures
impl UnsafeUnpin for ExtendedLmpFeatures
impl UnwindSafe for ExtendedLmpFeatures
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.