[−][src]Struct bluenrg::event::EventFlags
Bitfield for the Events Lost event. Each bit indicates a different type of event that was not handled.
Implementations
impl EventFlags
[src]
pub const DISCONNECTION_COMPLETE: EventFlags
[src]
HCI Event: Disconnection complete.
pub const ENCRYPTION_CHANGE: EventFlags
[src]
HCI Event: Encryption change.
pub const READ_REMOTE_VERSION_COMPLETE: EventFlags
[src]
HCI Event: Read Remote Version Complete.
pub const COMMAND_COMPLETE: EventFlags
[src]
HCI Event: Command Complete.
pub const COMMAND_STATUS: EventFlags
[src]
HCI Event: Command Status.
pub const HARDWARE_ERROR: EventFlags
[src]
HCI Event: Hardware Error.
pub const NUMBER_OF_COMPLETED_PACKETS: EventFlags
[src]
HCI Event: Number of completed packets.
pub const ENCRYPTION_KEY_REFRESH: EventFlags
[src]
HCI Event: Encryption key refresh complete.
pub const HAL_INITIALIZED: EventFlags
[src]
BlueNRG-MS Event: HAL Initialized.
pub const GAP_LIMITED_DISCOVERABLE_TIMEOUT: EventFlags
[src]
BlueNRG Event: GAP Set Limited Discoverable complete.
pub const GAP_PAIRING_COMPLETE: EventFlags
[src]
BlueNRG Event: GAP Pairing complete.
pub const GAP_PASS_KEY_REQUEST: EventFlags
[src]
BlueNRG Event: GAP Pass Key Request.
pub const GAP_AUTHORIZATION_REQUEST: EventFlags
[src]
BlueNRG Event: GAP Authorization Request.
pub const GAP_PERIPHERAL_SECURITY_INITIATED: EventFlags
[src]
BlueNRG Event: GAP Peripheral Security Initiated.
pub const GAP_BOND_LOST: EventFlags
[src]
BlueNRG Event: GAP Bond Lost.
pub const GAP_PROCEDURE_COMPLETE: EventFlags
[src]
BlueNRG Event: GAP Procedure complete.
pub const GAP_ADDRESS_NOT_RESOLVED: EventFlags
[src]
BlueNRG-MS Event: GAP Address Not Resolved.
pub const L2CAP_CONNECTION_UPDATE_RESPONSE: EventFlags
[src]
BlueNRG Event: L2Cap Connection Update Response.
pub const L2CAP_PROCEDURE_TIMEOUT: EventFlags
[src]
BlueNRG Event: L2Cap Procedure Timeout.
pub const L2CAP_CONNECTION_UPDATE_REQUEST: EventFlags
[src]
BlueNRG Event: L2Cap Connection Update Request.
pub const GATT_ATTRIBUTE_MODIFIED: EventFlags
[src]
BlueNRG Event: GATT Attribute modified.
pub const GATT_PROCEDURE_TIMEOUT: EventFlags
[src]
BlueNRG Event: GATT timeout.
pub const ATT_EXCHANGE_MTU_RESPONSE: EventFlags
[src]
BlueNRG Event: Exchange MTU Response.
pub const ATT_FIND_INFORMATION_RESPONSE: EventFlags
[src]
BlueNRG Event: Find information response.
pub const ATT_FIND_BY_TYPE_VALUE_RESPONSE: EventFlags
[src]
BlueNRG Event: Find by type value response.
pub const ATT_READ_BY_TYPE_RESPONSE: EventFlags
[src]
BlueNRG Event: Find read by type response.
pub const ATT_READ_RESPONSE: EventFlags
[src]
BlueNRG Event: Read response.
pub const ATT_READ_BLOB_RESPONSE: EventFlags
[src]
BlueNRG Event: Read blob response.
pub const ATT_READ_MULTIPLE_RESPONSE: EventFlags
[src]
BlueNRG Event: Read multiple response.
pub const ATT_READ_BY_GROUP_TYPE_RESPONSE: EventFlags
[src]
BlueNRG Event: Read by group type response.
pub const ATT_WRITE_RESPONSE: EventFlags
[src]
BlueNRG Event: ATT Write Response
pub const ATT_PREPARE_WRITE_RESPONSE: EventFlags
[src]
BlueNRG Event: Prepare Write Response.
pub const ATT_EXECUTE_WRITE_RESPONSE: EventFlags
[src]
BlueNRG Event: Execute write response.
pub const GATT_INDICATION: EventFlags
[src]
BlueNRG Event: Indication received from server.
pub const GATT_NOTIFICATION: EventFlags
[src]
BlueNRG Event: Notification received from server.
pub const GATT_PROCEDURE_COMPLETE: EventFlags
[src]
BlueNRG Event: GATT Procedure complete.
pub const GATT_ERROR_RESPONSE: EventFlags
[src]
BlueNRG Event: Error response received from server.
pub const GATT_DISCOVER_OR_READ_CHARACTERISTIC_BY_UUID_RESPONSE: EventFlags
[src]
BlueNRG Event: Response to either "Discover Characteristic by UUID" or "Read Characteristic by UUID" request
pub const GATT_WRITE_PERMIT_REQUEST: EventFlags
[src]
BlueNRG Event: Write request received by server.
pub const GATT_READ_PERMIT_REQUEST: EventFlags
[src]
BlueNRG Event: Read request received by server.
pub const GATT_READ_MULTIPLE_PERMIT_REQUEST: EventFlags
[src]
BlueNRG Event: Read multiple request received by server.
pub const GATT_TX_POOL_AVAILABLE: EventFlags
[src]
BlueNRG-MS Event: TX Pool available event missed.
pub const GATT_SERVER_RX_CONFIRMATION: EventFlags
[src]
BlueNRG-MS Event: Server confirmation.
pub const GATT_PREPARE_WRITE_PERMIT_REQUEST: EventFlags
[src]
BlueNRG-MS Event: Prepare write permit request.
pub const LINK_LAYER_CONNECTION_COMPLETE: EventFlags
[src]
BlueNRG-MS Event: Link Layer connection complete.
pub const LINK_LAYER_ADVERTISING_REPORT: EventFlags
[src]
BlueNRG-MS Event: Link Layer advertising report.
pub const LINK_LAYER_CONNECTION_UPDATE_COMPLETE: EventFlags
[src]
BlueNRG-MS Event: Link Layer connection update complete.
pub const LINK_LAYER_READ_REMOTE_USED_FEATURES: EventFlags
[src]
BlueNRG-MS Event: Link Layer read remote used features.
pub const LINK_LAYER_LTK_REQUEST: EventFlags
[src]
BlueNRG-MS Event: Link Layer long-term key request.
pub const fn empty() -> EventFlags
[src]
Returns an empty set of flags
pub const fn all() -> EventFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u64
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u64) -> Option<EventFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u64) -> EventFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u64) -> EventFlags
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: EventFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: EventFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: EventFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: EventFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: EventFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: EventFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for EventFlags
[src]
impl BitAnd<EventFlags> for EventFlags
[src]
type Output = EventFlags
The resulting type after applying the &
operator.
fn bitand(self, other: EventFlags) -> EventFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<EventFlags> for EventFlags
[src]
fn bitand_assign(&mut self, other: EventFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<EventFlags> for EventFlags
[src]
type Output = EventFlags
The resulting type after applying the |
operator.
fn bitor(self, other: EventFlags) -> EventFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<EventFlags> for EventFlags
[src]
fn bitor_assign(&mut self, other: EventFlags)
[src]
Adds the set of flags.
impl BitXor<EventFlags> for EventFlags
[src]
type Output = EventFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: EventFlags) -> EventFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<EventFlags> for EventFlags
[src]
fn bitxor_assign(&mut self, other: EventFlags)
[src]
Toggles the set of flags.
impl Clone for EventFlags
[src]
fn clone(&self) -> EventFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EventFlags
[src]
impl Debug for EventFlags
[src]
impl Default for EventFlags
[src]
fn default() -> EventFlags
[src]
impl Eq for EventFlags
[src]
impl Extend<EventFlags> for EventFlags
[src]
fn extend<T: IntoIterator<Item = EventFlags>>(&mut self, iterator: T)
[src]
impl FromIterator<EventFlags> for EventFlags
[src]
fn from_iter<T: IntoIterator<Item = EventFlags>>(iterator: T) -> EventFlags
[src]
impl Hash for EventFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for EventFlags
[src]
impl Not for EventFlags
[src]
type Output = EventFlags
The resulting type after applying the !
operator.
fn not(self) -> EventFlags
[src]
Returns the complement of this set of flags.
impl Octal for EventFlags
[src]
impl Ord for EventFlags
[src]
fn cmp(&self, other: &EventFlags) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EventFlags> for EventFlags
[src]
fn eq(&self, other: &EventFlags) -> bool
[src]
fn ne(&self, other: &EventFlags) -> bool
[src]
impl PartialOrd<EventFlags> for EventFlags
[src]
fn partial_cmp(&self, other: &EventFlags) -> Option<Ordering>
[src]
fn lt(&self, other: &EventFlags) -> bool
[src]
fn le(&self, other: &EventFlags) -> bool
[src]
fn gt(&self, other: &EventFlags) -> bool
[src]
fn ge(&self, other: &EventFlags) -> bool
[src]
impl StructuralEq for EventFlags
[src]
impl StructuralPartialEq for EventFlags
[src]
impl Sub<EventFlags> for EventFlags
[src]
type Output = EventFlags
The resulting type after applying the -
operator.
fn sub(self, other: EventFlags) -> EventFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<EventFlags> for EventFlags
[src]
fn sub_assign(&mut self, other: EventFlags)
[src]
Disables all flags enabled in the set.
impl UpperHex for EventFlags
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,