pub struct LeFeatureMask(/* private fields */);
Expand description
LeFeatureMask
Implementations§
Source§impl LeFeatureMask
impl LeFeatureMask
Sourcepub fn into_inner(self) -> [u8; 8]
pub fn into_inner(self) -> [u8; 8]
Get the inner representation.
pub const fn supports_le_encryption(&self) -> bool
pub const fn set_le_encryption(self, val: bool) -> Self
pub const fn supports_conn_parameters_request_procedure(&self) -> bool
pub const fn set_conn_parameters_request_procedure(self, val: bool) -> Self
pub const fn supports_ext_reject_indication(&self) -> bool
pub const fn set_ext_reject_indication(self, val: bool) -> Self
pub const fn supports_peripheral_initiated_features_exchange(&self) -> bool
pub const fn set_peripheral_initiated_features_exchange(self, val: bool) -> Self
pub const fn supports_le_ping(&self) -> bool
pub const fn set_le_ping(self, val: bool) -> Self
pub const fn supports_le_data_packet_length_extension(&self) -> bool
pub const fn set_le_data_packet_length_extension(self, val: bool) -> Self
pub const fn supports_ll_privacy(&self) -> bool
pub const fn set_ll_privacy(self, val: bool) -> Self
pub const fn supports_ext_scanner_filter_policies(&self) -> bool
pub const fn set_ext_scanner_filter_policies(self, val: bool) -> Self
pub const fn supports_le_2m_phy(&self) -> bool
pub const fn set_le_2m_phy(self, val: bool) -> Self
pub const fn supports_stable_modulation_index_tx(&self) -> bool
pub const fn set_stable_modulation_index_tx(self, val: bool) -> Self
pub const fn supports_stable_modulation_index_rx(&self) -> bool
pub const fn set_stable_modulation_index_rx(self, val: bool) -> Self
pub const fn supports_le_coded_phy(&self) -> bool
pub const fn set_le_coded_phy(self, val: bool) -> Self
pub const fn supports_le_ext_adv(&self) -> bool
pub const fn set_le_ext_adv(self, val: bool) -> Self
pub const fn supports_le_periodic_adv(&self) -> bool
pub const fn set_le_periodic_adv(self, val: bool) -> Self
pub const fn supports_channel_selection_algorithm_2(&self) -> bool
pub const fn set_channel_selection_algorithm_2(self, val: bool) -> Self
pub const fn supports_le_power_class_1(&self) -> bool
pub const fn set_le_power_class_1(self, val: bool) -> Self
pub const fn supports_min_used_channels_procedure(&self) -> bool
pub const fn set_min_used_channels_procedure(self, val: bool) -> Self
pub const fn supports_conn_cte_request(&self) -> bool
pub const fn set_conn_cte_request(self, val: bool) -> Self
pub const fn supports_conn_cte_response(&self) -> bool
pub const fn set_conn_cte_response(self, val: bool) -> Self
pub const fn supports_connectionless_cte_tx(&self) -> bool
pub const fn set_connectionless_cte_tx(self, val: bool) -> Self
pub const fn supports_connectionless_cte_rx(&self) -> bool
pub const fn set_connectionless_cte_rx(self, val: bool) -> Self
pub const fn supports_antenna_switching_during_cte_tx(&self) -> bool
pub const fn set_antenna_switching_during_cte_tx(self, val: bool) -> Self
pub const fn supports_antenna_switching_during_cte_rx(&self) -> bool
pub const fn set_antenna_switching_during_cte_rx(self, val: bool) -> Self
pub const fn supports_receiving_constant_tone_extensions(&self) -> bool
pub const fn set_receiving_constant_tone_extensions(self, val: bool) -> Self
pub const fn supports_periodic_adv_sync_transfer_sender(&self) -> bool
pub const fn set_periodic_adv_sync_transfer_sender(self, val: bool) -> Self
pub const fn supports_periodic_adv_sync_transfer_recipient(&self) -> bool
pub const fn set_periodic_adv_sync_transfer_recipient(self, val: bool) -> Self
pub const fn supports_sleep_clock_accuracy_updates(&self) -> bool
pub const fn set_sleep_clock_accuracy_updates(self, val: bool) -> Self
pub const fn supports_remote_public_key_validation(&self) -> bool
pub const fn set_remote_public_key_validation(self, val: bool) -> Self
pub const fn supports_connected_isochronous_stream_central(&self) -> bool
pub const fn set_connected_isochronous_stream_central(self, val: bool) -> Self
pub const fn supports_connected_isochronous_stream_peripheral(&self) -> bool
pub const fn set_connected_isochronous_stream_peripheral( self, val: bool, ) -> Self
pub const fn supports_isochronous_broadcaster(&self) -> bool
pub const fn set_isochronous_broadcaster(self, val: bool) -> Self
pub const fn supports_synchronized_receiver(&self) -> bool
pub const fn set_synchronized_receiver(self, val: bool) -> Self
pub const fn supports_connected_isochronous_stream(&self) -> bool
pub const fn set_connected_isochronous_stream(self, val: bool) -> Self
pub const fn supports_le_power_control_request(&self) -> bool
pub const fn set_le_power_control_request(self, val: bool) -> Self
pub const fn supports_le_path_loss_monitoring(&self) -> bool
pub const fn set_le_path_loss_monitoring(self, val: bool) -> Self
pub const fn supports_periodic_adv_adi(&self) -> bool
pub const fn set_periodic_adv_adi(self, val: bool) -> Self
pub const fn supports_conn_subrating(&self) -> bool
pub const fn set_conn_subrating(self, val: bool) -> Self
pub const fn supports_conn_subrating_host(&self) -> bool
pub const fn set_conn_subrating_host(self, val: bool) -> Self
pub const fn supports_channel_classification(&self) -> bool
pub const fn set_channel_classification(self, val: bool) -> Self
pub const fn supports_adv_coding_selection(&self) -> bool
pub const fn set_adv_coding_selection(self, val: bool) -> Self
pub const fn supports_adv_coding_selection_host_support(&self) -> bool
pub const fn set_adv_coding_selection_host_support(self, val: bool) -> Self
pub const fn supports_periodic_adv_with_resp_advertiser(&self) -> bool
pub const fn set_periodic_adv_with_resp_advertiser(self, val: bool) -> Self
pub const fn supports_periodic_adv_with_resp_scanner(&self) -> bool
pub const fn set_periodic_adv_with_resp_scanner(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for LeFeatureMask
impl ByteAlignedValue for LeFeatureMask
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 LeFeatureMask
impl Clone for LeFeatureMask
Source§fn clone(&self) -> LeFeatureMask
fn clone(&self) -> LeFeatureMask
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 LeFeatureMask
impl Debug for LeFeatureMask
Source§impl Default for LeFeatureMask
impl Default for LeFeatureMask
Source§fn default() -> LeFeatureMask
fn default() -> LeFeatureMask
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for LeFeatureMask
impl FixedSizeValue for LeFeatureMask
Source§impl<'de> FromHciBytes<'de> for &'de LeFeatureMask
impl<'de> FromHciBytes<'de> for &'de LeFeatureMask
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 LeFeatureMask
impl Hash for LeFeatureMask
Source§impl Ord for LeFeatureMask
impl Ord for LeFeatureMask
Source§fn cmp(&self, other: &LeFeatureMask) -> Ordering
fn cmp(&self, other: &LeFeatureMask) -> 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 LeFeatureMask
impl PartialEq for LeFeatureMask
Source§impl PartialOrd for LeFeatureMask
impl PartialOrd for LeFeatureMask
impl Copy for LeFeatureMask
impl Eq for LeFeatureMask
impl StructuralPartialEq for LeFeatureMask
Auto Trait Implementations§
impl Freeze for LeFeatureMask
impl RefUnwindSafe for LeFeatureMask
impl Send for LeFeatureMask
impl Sync for LeFeatureMask
impl Unpin for LeFeatureMask
impl UnwindSafe for LeFeatureMask
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.