pub struct ChannelMap(/* private fields */);
Expand description
ChannelMap
Implementations§
Source§impl ChannelMap
impl ChannelMap
Sourcepub fn into_inner(self) -> [u8; 5]
pub fn into_inner(self) -> [u8; 5]
Get inner representation
Source§impl ChannelMap
impl ChannelMap
Sourcepub fn is_channel_bad(&self, channel: u8) -> bool
pub fn is_channel_bad(&self, channel: u8) -> bool
Check if channel is marked as bad.
Sourcepub fn set_channel_bad(&mut self, channel: u8, bad: bool)
pub fn set_channel_bad(&mut self, channel: u8, bad: bool)
Set channel to be marked as bad.
Trait Implementations§
Source§impl ByteAlignedValue for ChannelMap
impl ByteAlignedValue for ChannelMap
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 ChannelMap
impl Clone for ChannelMap
Source§fn clone(&self) -> ChannelMap
fn clone(&self) -> ChannelMap
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 ChannelMap
impl Debug for ChannelMap
Source§impl Default for ChannelMap
impl Default for ChannelMap
Source§fn default() -> ChannelMap
fn default() -> ChannelMap
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for ChannelMap
impl FixedSizeValue for ChannelMap
Source§impl From<ChannelMap> for LeSetHostChannelClassification
impl From<ChannelMap> for LeSetHostChannelClassification
Source§fn from(params: ChannelMap) -> Self
fn from(params: ChannelMap) -> Self
Converts to this type from the input type.
Source§impl<'de> FromHciBytes<'de> for &'de ChannelMap
impl<'de> FromHciBytes<'de> for &'de ChannelMap
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 ChannelMap
impl Hash for ChannelMap
Source§impl Ord for ChannelMap
impl Ord for ChannelMap
Source§fn cmp(&self, other: &ChannelMap) -> Ordering
fn cmp(&self, other: &ChannelMap) -> 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 ChannelMap
impl PartialEq for ChannelMap
Source§impl PartialOrd for ChannelMap
impl PartialOrd for ChannelMap
impl Copy for ChannelMap
impl Eq for ChannelMap
impl StructuralPartialEq for ChannelMap
Auto Trait Implementations§
impl Freeze for ChannelMap
impl RefUnwindSafe for ChannelMap
impl Send for ChannelMap
impl Sync for ChannelMap
impl Unpin for ChannelMap
impl UnwindSafe for ChannelMap
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.