pub struct EventMaskPage2(/* private fields */);
Expand description
EventMaskPage2
Implementations§
Source§impl EventMaskPage2
impl EventMaskPage2
Sourcepub fn into_inner(self) -> [u8; 8]
pub fn into_inner(self) -> [u8; 8]
Get the inner representation.
pub const fn is_number_of_completed_data_blocks_enabled(&self) -> bool
pub const fn enable_number_of_completed_data_blocks(self, val: bool) -> Self
pub const fn is_triggered_clock_capture_enabled(&self) -> bool
pub const fn enable_triggered_clock_capture(self, val: bool) -> Self
pub const fn is_synchronization_train_complete_enabled(&self) -> bool
pub const fn enable_synchronization_train_complete(self, val: bool) -> Self
pub const fn is_synchronization_train_received_enabled(&self) -> bool
pub const fn enable_synchronization_train_received(self, val: bool) -> Self
pub const fn is_connectionless_peripheral_broadcast_receive_enabled( &self, ) -> bool
pub const fn enable_connectionless_peripheral_broadcast_receive( self, val: bool, ) -> Self
pub const fn is_connectionless_peripheral_broadcast_timeout_enabled( &self, ) -> bool
pub const fn enable_connectionless_peripheral_broadcast_timeout( self, val: bool, ) -> Self
pub const fn is_truncated_page_complete_enabled(&self) -> bool
pub const fn enable_truncated_page_complete(self, val: bool) -> Self
pub const fn is_peripheral_page_response_timeout_enabled(&self) -> bool
pub const fn enable_peripheral_page_response_timeout(self, val: bool) -> Self
pub const fn is_connectionless_peripheral_broadcast_channel_map_change_enabled( &self, ) -> bool
pub const fn enable_connectionless_peripheral_broadcast_channel_map_change( self, val: bool, ) -> Self
pub const fn is_inquiry_response_notification_enabled(&self) -> bool
pub const fn enable_inquiry_response_notification(self, val: bool) -> Self
pub const fn is_authenticated_payload_timeout_expired_enabled(&self) -> bool
pub const fn enable_authenticated_payload_timeout_expired( self, val: bool, ) -> Self
pub const fn is_sam_status_change_enabled(&self) -> bool
pub const fn enable_sam_status_change(self, val: bool) -> Self
pub const fn is_encryption_change_v2_enabled(&self) -> bool
pub const fn enable_encryption_change_v2(self, val: bool) -> Self
Trait Implementations§
Source§impl ByteAlignedValue for EventMaskPage2
impl ByteAlignedValue for EventMaskPage2
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 EventMaskPage2
impl Clone for EventMaskPage2
Source§fn clone(&self) -> EventMaskPage2
fn clone(&self) -> EventMaskPage2
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 EventMaskPage2
impl Debug for EventMaskPage2
Source§impl Default for EventMaskPage2
impl Default for EventMaskPage2
Source§fn default() -> EventMaskPage2
fn default() -> EventMaskPage2
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for EventMaskPage2
impl FixedSizeValue for EventMaskPage2
Source§impl From<EventMaskPage2> for SetEventMaskPage2
impl From<EventMaskPage2> for SetEventMaskPage2
Source§fn from(params: EventMaskPage2) -> Self
fn from(params: EventMaskPage2) -> Self
Converts to this type from the input type.
Source§impl<'de> FromHciBytes<'de> for &'de EventMaskPage2
impl<'de> FromHciBytes<'de> for &'de EventMaskPage2
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 EventMaskPage2
impl Hash for EventMaskPage2
Source§impl Ord for EventMaskPage2
impl Ord for EventMaskPage2
Source§fn cmp(&self, other: &EventMaskPage2) -> Ordering
fn cmp(&self, other: &EventMaskPage2) -> 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 EventMaskPage2
impl PartialEq for EventMaskPage2
Source§impl PartialOrd for EventMaskPage2
impl PartialOrd for EventMaskPage2
impl Copy for EventMaskPage2
impl Eq for EventMaskPage2
impl StructuralPartialEq for EventMaskPage2
Auto Trait Implementations§
impl Freeze for EventMaskPage2
impl RefUnwindSafe for EventMaskPage2
impl Send for EventMaskPage2
impl Sync for EventMaskPage2
impl Unpin for EventMaskPage2
impl UnwindSafe for EventMaskPage2
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.