Skip to main content

EventMask

Struct EventMask 

Source
pub struct EventMask<S: Storage, ST: State = UncheckedState> { /* private fields */ }

Implementations§

Source§

impl<S: Storage> EventMask<S, UncheckedState>

Source

pub fn new(storage: S) -> Self

Source§

impl<S: Storage, ST: State> EventMask<S, ST>

Source

pub unsafe fn new_in_state(storage: S) -> Self

Constructs a view in a specific typestate.

§Safety

The caller must ensure that storage satisfies the layout invariants for ST.

Source

pub fn into_storage(self) -> S

Source

pub fn inquiry_complete_event(&self) -> BitFlag<1, 0, Null, S::Sliced<'_>, ST>

Source

pub fn inquiry_result_event(&self) -> BitFlag<1, 1, Null, S::Sliced<'_>, ST>

Source

pub fn connection_complete_event( &self, ) -> BitFlag<1, 2, Null, S::Sliced<'_>, ST>

Source

pub fn connection_request_event(&self) -> BitFlag<1, 3, Null, S::Sliced<'_>, ST>

Source

pub fn disconnection_complete_event( &self, ) -> BitFlag<1, 4, Null, S::Sliced<'_>, ST>

Source

pub fn authentication_complete_event( &self, ) -> BitFlag<1, 5, Null, S::Sliced<'_>, ST>

Source

pub fn remote_name_request_complete_event( &self, ) -> BitFlag<1, 6, Null, S::Sliced<'_>, ST>

Source

pub fn encryption_change_event(&self) -> BitFlag<1, 7, Null, S::Sliced<'_>, ST>

Source

pub fn read_remote_supported_features_complete_event( &self, ) -> BitFlag<1, 10, Null, S::Sliced<'_>, ST>

Source

pub fn read_remote_version_information_complete_event( &self, ) -> BitFlag<1, 11, Null, S::Sliced<'_>, ST>

Source

pub fn qos_setup_complete_event( &self, ) -> BitFlag<1, 12, Null, S::Sliced<'_>, ST>

Source

pub fn hardware_error_event(&self) -> BitFlag<1, 15, Null, S::Sliced<'_>, ST>

Source

pub fn flush_occurred_event(&self) -> BitFlag<1, 16, Null, S::Sliced<'_>, ST>

Source

pub fn role_change_event(&self) -> BitFlag<1, 17, Null, S::Sliced<'_>, ST>

Source

pub fn mode_change_event(&self) -> BitFlag<1, 19, Null, S::Sliced<'_>, ST>

Source

pub fn pin_code_request_event(&self) -> BitFlag<1, 21, Null, S::Sliced<'_>, ST>

Source

pub fn loopback_command_event(&self) -> BitFlag<1, 24, Null, S::Sliced<'_>, ST>

Source

pub fn data_buffer_overflow_event( &self, ) -> BitFlag<1, 25, Null, S::Sliced<'_>, ST>

Source

pub fn max_slots_change_event(&self) -> BitFlag<1, 26, Null, S::Sliced<'_>, ST>

Source

pub fn read_clock_offset_complete_event( &self, ) -> BitFlag<1, 27, Null, S::Sliced<'_>, ST>

Source

pub fn connection_packet_type_changed_event( &self, ) -> BitFlag<1, 28, Null, S::Sliced<'_>, ST>

Source

pub fn qos_violation_event(&self) -> BitFlag<1, 29, Null, S::Sliced<'_>, ST>

Source

pub fn page_scan_mode_change_event( &self, ) -> BitFlag<1, 30, Null, S::Sliced<'_>, ST>

Source

pub fn page_scan_repetition_mode_change_event( &self, ) -> BitFlag<1, 31, Null, S::Sliced<'_>, ST>

Source

pub fn flow_specification_complete_event( &self, ) -> BitFlag<1, 32, Null, S::Sliced<'_>, ST>

Source

pub fn inquiry_result_with_rssi_event( &self, ) -> BitFlag<1, 33, Null, S::Sliced<'_>, ST>

Source

pub fn read_remote_extended_features_complete_event( &self, ) -> BitFlag<1, 34, Null, S::Sliced<'_>, ST>

Source

pub fn synchronous_connection_complete_event( &self, ) -> BitFlag<1, 43, Null, S::Sliced<'_>, ST>

Source

pub fn synchronous_connection_changed_event( &self, ) -> BitFlag<1, 44, Null, S::Sliced<'_>, ST>

Source

pub fn sniff_subrating_event(&self) -> BitFlag<1, 45, Null, S::Sliced<'_>, ST>

Source

pub fn extended_inquiry_result_event( &self, ) -> BitFlag<1, 46, Null, S::Sliced<'_>, ST>

Source

pub fn encryption_key_refresh_complete_event( &self, ) -> BitFlag<1, 47, Null, S::Sliced<'_>, ST>

Source

pub fn io_capability_request_event( &self, ) -> BitFlag<1, 48, Null, S::Sliced<'_>, ST>

Source

pub fn io_capability_response_event( &self, ) -> BitFlag<1, 49, Null, S::Sliced<'_>, ST>

Source

pub fn user_confirmation_request_event( &self, ) -> BitFlag<1, 50, Null, S::Sliced<'_>, ST>

Source

pub fn user_passkey_request_event( &self, ) -> BitFlag<1, 51, Null, S::Sliced<'_>, ST>

Source

pub fn remote_oob_data_request_event( &self, ) -> BitFlag<1, 52, Null, S::Sliced<'_>, ST>

Source

pub fn simple_pairing_complete_event( &self, ) -> BitFlag<1, 53, Null, S::Sliced<'_>, ST>

Source

pub fn enhanced_flush_complete_event( &self, ) -> BitFlag<1, 56, Null, S::Sliced<'_>, ST>

Source

pub fn user_passkey_notification_event( &self, ) -> BitFlag<1, 58, Null, S::Sliced<'_>, ST>

Source

pub fn keypress_notification_event( &self, ) -> BitFlag<1, 59, Null, S::Sliced<'_>, ST>

Source

pub fn remote_host_supported_features_notification_event( &self, ) -> BitFlag<1, 60, Null, S::Sliced<'_>, ST>

Source

pub fn le_meta_event(&self) -> BitFlag<1, 61, Null, S::Sliced<'_>, ST>

Trait Implementations§

Source§

impl<S: Storage> CheckComplete for EventMask<S, UncheckedState>

Source§

impl<S: Storage> CheckOk for EventMask<S, UncheckedState>

Source§

impl<S: Storage> CheckOk for EventMask<S, CompleteState>

Source§

impl<S: Storage> CheckOk for EventMask<S, OkState>

Source§

impl<S: Storage + Clone, ST: State> Clone for EventMask<S, ST>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Storage, ST: State> View for EventMask<S, ST>

Source§

fn size_in_bytes(&self) -> Result<usize, Error>

Returns the intrinsic layout size of the structure in bytes.

Auto Trait Implementations§

§

impl<S, ST> Freeze for EventMask<S, ST>
where S: Freeze,

§

impl<S, ST> RefUnwindSafe for EventMask<S, ST>

§

impl<S, ST> Send for EventMask<S, ST>
where S: Send, ST: Send,

§

impl<S, ST> Sync for EventMask<S, ST>
where S: Sync, ST: Sync,

§

impl<S, ST> Unpin for EventMask<S, ST>
where S: Unpin, ST: Unpin,

§

impl<S, ST> UnsafeUnpin for EventMask<S, ST>
where S: UnsafeUnpin,

§

impl<S, ST> UnwindSafe for EventMask<S, ST>
where S: UnwindSafe, ST: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.