pub struct LeEventMask(/* private fields */);
Expand description
LeEventMask
Implementations§
Source§impl LeEventMask
impl LeEventMask
Sourcepub fn into_inner(self) -> [u8; 8]
pub fn into_inner(self) -> [u8; 8]
Get the inner representation.
pub const fn is_le_conn_complete_enabled(&self) -> bool
pub const fn enable_le_conn_complete(self, val: bool) -> Self
pub const fn is_le_adv_report_enabled(&self) -> bool
pub const fn enable_le_adv_report(self, val: bool) -> Self
pub const fn is_le_conn_update_complete_enabled(&self) -> bool
pub const fn enable_le_conn_update_complete(self, val: bool) -> Self
pub const fn is_le_read_remote_features_complete_enabled(&self) -> bool
pub const fn enable_le_read_remote_features_complete(self, val: bool) -> Self
pub const fn is_le_long_term_key_request_enabled(&self) -> bool
pub const fn enable_le_long_term_key_request(self, val: bool) -> Self
pub const fn is_le_remote_conn_parameter_request_enabled(&self) -> bool
pub const fn enable_le_remote_conn_parameter_request(self, val: bool) -> Self
pub const fn is_le_data_length_change_enabled(&self) -> bool
pub const fn enable_le_data_length_change(self, val: bool) -> Self
pub const fn is_le_read_local_p256_public_key_complete_enabled(&self) -> bool
pub const fn enable_le_read_local_p256_public_key_complete( self, val: bool, ) -> Self
pub const fn is_le_generate_dhkey_complete_enabled(&self) -> bool
pub const fn enable_le_generate_dhkey_complete(self, val: bool) -> Self
pub const fn is_le_enhanced_conn_complete_enabled(&self) -> bool
pub const fn enable_le_enhanced_conn_complete(self, val: bool) -> Self
pub const fn is_le_directed_adv_report_enabled(&self) -> bool
pub const fn enable_le_directed_adv_report(self, val: bool) -> Self
pub const fn is_le_phy_update_complete_enabled(&self) -> bool
pub const fn enable_le_phy_update_complete(self, val: bool) -> Self
pub const fn is_le_ext_adv_report_enabled(&self) -> bool
pub const fn enable_le_ext_adv_report(self, val: bool) -> Self
pub const fn is_le_periodic_adv_sync_established_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_sync_established(self, val: bool) -> Self
pub const fn is_le_periodic_adv_report_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_report(self, val: bool) -> Self
pub const fn is_le_periodic_adv_sync_lost_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_sync_lost(self, val: bool) -> Self
pub const fn is_le_scan_timeout_enabled(&self) -> bool
pub const fn enable_le_scan_timeout(self, val: bool) -> Self
pub const fn is_le_adv_set_terminated_enabled(&self) -> bool
pub const fn enable_le_adv_set_terminated(self, val: bool) -> Self
pub const fn is_le_scan_request_received_enabled(&self) -> bool
pub const fn enable_le_scan_request_received(self, val: bool) -> Self
pub const fn is_le_channel_selection_algorithm_enabled(&self) -> bool
pub const fn enable_le_channel_selection_algorithm(self, val: bool) -> Self
pub const fn is_le_connectionless_iq_report_enabled(&self) -> bool
pub const fn enable_le_connectionless_iq_report(self, val: bool) -> Self
pub const fn is_le_conn_iq_report_enabled(&self) -> bool
pub const fn enable_le_conn_iq_report(self, val: bool) -> Self
pub const fn is_le_cte_request_failed_enabled(&self) -> bool
pub const fn enable_le_cte_request_failed(self, val: bool) -> Self
pub const fn is_le_periodic_adv_sync_transfer_received_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_sync_transfer_received( self, val: bool, ) -> Self
pub const fn is_le_cis_established_enabled(&self) -> bool
pub const fn enable_le_cis_established(self, val: bool) -> Self
pub const fn is_le_cis_request_enabled(&self) -> bool
pub const fn enable_le_cis_request(self, val: bool) -> Self
pub const fn is_le_create_big_complete_enabled(&self) -> bool
pub const fn enable_le_create_big_complete(self, val: bool) -> Self
pub const fn is_le_terminate_big_complete_enabled(&self) -> bool
pub const fn enable_le_terminate_big_complete(self, val: bool) -> Self
pub const fn is_le_big_sync_established_enabled(&self) -> bool
pub const fn enable_le_big_sync_established(self, val: bool) -> Self
pub const fn is_le_big_sync_lost_enabled(&self) -> bool
pub const fn enable_le_big_sync_lost(self, val: bool) -> Self
pub const fn is_le_request_peer_sca_complete_enabled(&self) -> bool
pub const fn enable_le_request_peer_sca_complete(self, val: bool) -> Self
pub const fn is_le_path_loss_threshold_enabled(&self) -> bool
pub const fn enable_le_path_loss_threshold(self, val: bool) -> Self
pub const fn is_le_transmit_power_reporting_enabled(&self) -> bool
pub const fn enable_le_transmit_power_reporting(self, val: bool) -> Self
pub const fn is_le_biginfo_adv_report_enabled(&self) -> bool
pub const fn enable_le_biginfo_adv_report(self, val: bool) -> Self
pub const fn is_le_subrate_change_enabled(&self) -> bool
pub const fn enable_le_subrate_change(self, val: bool) -> Self
pub const fn is_le_periodic_adv_sync_established_v2_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_sync_established_v2(self, val: bool) -> Self
pub const fn is_le_periodic_adv_report_v2_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_report_v2(self, val: bool) -> Self
pub const fn is_le_periodic_adv_sync_transfer_received_v2_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_sync_transfer_received_v2( self, val: bool, ) -> Self
pub const fn is_le_periodic_adv_subevent_data_request_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_subevent_data_request( self, val: bool, ) -> Self
pub const fn is_le_periodic_adv_response_report_enabled(&self) -> bool
pub const fn enable_le_periodic_adv_response_report(self, val: bool) -> Self
pub const fn is_le_enhanced_conn_complete_v2_enabled(&self) -> bool
pub const fn enable_le_enhanced_conn_complete_v2(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for LeEventMask
impl ByteAlignedValue for LeEventMask
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 LeEventMask
impl Clone for LeEventMask
Source§fn clone(&self) -> LeEventMask
fn clone(&self) -> LeEventMask
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 LeEventMask
impl Debug for LeEventMask
Source§impl Default for LeEventMask
impl Default for LeEventMask
Source§fn default() -> LeEventMask
fn default() -> LeEventMask
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for LeEventMask
impl FixedSizeValue for LeEventMask
Source§impl From<LeEventMask> for LeSetEventMask
impl From<LeEventMask> for LeSetEventMask
Source§fn from(params: LeEventMask) -> Self
fn from(params: LeEventMask) -> Self
Converts to this type from the input type.
Source§impl<'de> FromHciBytes<'de> for &'de LeEventMask
impl<'de> FromHciBytes<'de> for &'de LeEventMask
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 LeEventMask
impl Hash for LeEventMask
Source§impl Ord for LeEventMask
impl Ord for LeEventMask
Source§fn cmp(&self, other: &LeEventMask) -> Ordering
fn cmp(&self, other: &LeEventMask) -> 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 LeEventMask
impl PartialEq for LeEventMask
Source§impl PartialOrd for LeEventMask
impl PartialOrd for LeEventMask
impl Copy for LeEventMask
impl Eq for LeEventMask
impl StructuralPartialEq for LeEventMask
Auto Trait Implementations§
impl Freeze for LeEventMask
impl RefUnwindSafe for LeEventMask
impl Send for LeEventMask
impl Sync for LeEventMask
impl Unpin for LeEventMask
impl UnwindSafe for LeEventMask
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.