pub struct AdvChannelMap(/* private fields */);
Expand description
$name.
Implementations§
Source§impl AdvChannelMap
impl AdvChannelMap
Sourcepub fn new() -> AdvChannelMap
pub fn new() -> AdvChannelMap
Create a new instance.
Sourcepub fn into_inner(self) -> u8
pub fn into_inner(self) -> u8
Get the inner representation.
pub const fn is_channel_37_enabled(&self) -> bool
pub const fn enable_channel_37(self, val: bool) -> AdvChannelMap
pub const fn is_channel_38_enabled(&self) -> bool
pub const fn enable_channel_38(self, val: bool) -> AdvChannelMap
pub const fn is_channel_39_enabled(&self) -> bool
pub const fn enable_channel_39(self, val: bool) -> AdvChannelMap
Source§impl AdvChannelMap
impl AdvChannelMap
pub const ALL: AdvChannelMap
pub const CHANNEL_37: AdvChannelMap
pub const CHANNEL_38: AdvChannelMap
pub const CHANNEL_39: AdvChannelMap
Trait Implementations§
Source§impl ByteAlignedValue for AdvChannelMap
impl ByteAlignedValue for AdvChannelMap
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 AdvChannelMap
impl Clone for AdvChannelMap
Source§fn clone(&self) -> AdvChannelMap
fn clone(&self) -> AdvChannelMap
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 AdvChannelMap
impl Debug for AdvChannelMap
Source§impl Default for AdvChannelMap
impl Default for AdvChannelMap
Source§fn default() -> AdvChannelMap
fn default() -> AdvChannelMap
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for AdvChannelMap
impl FixedSizeValue for AdvChannelMap
Source§impl<'de> FromHciBytes<'de> for &'de AdvChannelMap
impl<'de> FromHciBytes<'de> for &'de AdvChannelMap
Source§fn from_hci_bytes(
data: &'de [u8],
) -> Result<(&'de AdvChannelMap, &'de [u8]), FromHciBytesError>
fn from_hci_bytes( data: &'de [u8], ) -> Result<(&'de AdvChannelMap, &'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 AdvChannelMap
impl Hash for AdvChannelMap
Source§impl Ord for AdvChannelMap
impl Ord for AdvChannelMap
Source§fn cmp(&self, other: &AdvChannelMap) -> Ordering
fn cmp(&self, other: &AdvChannelMap) -> 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 AdvChannelMap
impl PartialEq for AdvChannelMap
Source§impl PartialOrd for AdvChannelMap
impl PartialOrd for AdvChannelMap
impl Copy for AdvChannelMap
impl Eq for AdvChannelMap
impl StructuralPartialEq for AdvChannelMap
Auto Trait Implementations§
impl Freeze for AdvChannelMap
impl RefUnwindSafe for AdvChannelMap
impl Send for AdvChannelMap
impl Sync for AdvChannelMap
impl Unpin for AdvChannelMap
impl UnwindSafe for AdvChannelMap
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§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.