#[repr(C, packed(1))]pub struct LeSetHostFeatureV2Params {
pub bit_number: u16,
pub bit_value: u8,
}
Expand description
Parameters for LE Set Host Feature V2 command ๐ LeSetHostFeatureV2Params
Fieldsยง
ยงbit_number: u16
ยงbit_value: u8
Trait Implementationsยง
Sourceยงimpl ByteAlignedValue for LeSetHostFeatureV2Params
impl ByteAlignedValue for LeSetHostFeatureV2Params
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 LeSetHostFeatureV2Params
impl Clone for LeSetHostFeatureV2Params
Sourceยงfn clone(&self) -> LeSetHostFeatureV2Params
fn clone(&self) -> LeSetHostFeatureV2Params
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 LeSetHostFeatureV2Params
impl Debug for LeSetHostFeatureV2Params
Sourceยงimpl From<LeSetHostFeatureV2Params> for LeSetHostFeatureV2
impl From<LeSetHostFeatureV2Params> for LeSetHostFeatureV2
Sourceยงfn from(params: LeSetHostFeatureV2Params) -> Self
fn from(params: LeSetHostFeatureV2Params) -> Self
Converts to this type from the input type.
Sourceยงimpl<'de> FromHciBytes<'de> for &'de LeSetHostFeatureV2Params
impl<'de> FromHciBytes<'de> for &'de LeSetHostFeatureV2Params
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 LeSetHostFeatureV2Params
impl Hash for LeSetHostFeatureV2Params
Sourceยงimpl Ord for LeSetHostFeatureV2Params
impl Ord for LeSetHostFeatureV2Params
Sourceยงfn cmp(&self, other: &LeSetHostFeatureV2Params) -> Ordering
fn cmp(&self, other: &LeSetHostFeatureV2Params) -> 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 LeSetHostFeatureV2Params
impl PartialOrd for LeSetHostFeatureV2Params
impl Copy for LeSetHostFeatureV2Params
impl Eq for LeSetHostFeatureV2Params
impl StructuralPartialEq for LeSetHostFeatureV2Params
Auto Trait Implementationsยง
impl Freeze for LeSetHostFeatureV2Params
impl RefUnwindSafe for LeSetHostFeatureV2Params
impl Send for LeSetHostFeatureV2Params
impl Sync for LeSetHostFeatureV2Params
impl Unpin for LeSetHostFeatureV2Params
impl UnwindSafe for LeSetHostFeatureV2Params
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.