pub struct CteMask(/* private fields */);
Expand description
CteMask
Implementations§
Source§impl CteMask
impl CteMask
Sourcepub fn into_inner(self) -> u8
pub fn into_inner(self) -> u8
Get the inner representation.
pub const fn is_aoa_cte(&self) -> bool
pub const fn set_aoa_cte(self, val: bool) -> Self
pub const fn is_aod_1us_cte(&self) -> bool
pub const fn set_aod_1us_cte(self, val: bool) -> Self
pub const fn is_aod_2us_cte(&self) -> bool
pub const fn set_aod_2us_cte(self, val: bool) -> Self
pub const fn is_type_3_cte(&self) -> bool
pub const fn set_type_3_cte(self, val: bool) -> Self
pub const fn is_non_cte(&self) -> bool
pub const fn set_non_cte(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for CteMask
impl ByteAlignedValue for CteMask
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 FixedSizeValue for CteMask
impl FixedSizeValue for CteMask
Source§impl<'de> FromHciBytes<'de> for &'de CteMask
impl<'de> FromHciBytes<'de> for &'de CteMask
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 Ord for CteMask
impl Ord for CteMask
Source§impl PartialOrd for CteMask
impl PartialOrd for CteMask
impl Copy for CteMask
impl Eq for CteMask
impl StructuralPartialEq for CteMask
Auto Trait Implementations§
impl Freeze for CteMask
impl RefUnwindSafe for CteMask
impl Send for CteMask
impl Sync for CteMask
impl Unpin for CteMask
impl UnwindSafe for CteMask
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.