Struct bluenrg::event::EventFlags[]

pub struct EventFlags { /* fields omitted */ }

Bitfield for the Events Lost event. Each bit indicates a different type of event that was not handled.

Methods

impl EventFlags

DISCONNECTION_COMPLETE: EventFlags = EventFlags{bits: 1 << 0,}

HCI Event: Disconnection complete.

ENCRYPTION_CHANGE: EventFlags = EventFlags{bits: 1 << 1,}

HCI Event: Encryption change.

READ_REMOTE_VERSION_COMPLETE: EventFlags = EventFlags{bits: 1 << 2,}

HCI Event: Read Remote Version Complete.

COMMAND_COMPLETE: EventFlags = EventFlags{bits: 1 << 3,}

HCI Event: Command Complete.

COMMAND_STATUS: EventFlags = EventFlags{bits: 1 << 4,}

HCI Event: Command Status.

HARDWARE_ERROR: EventFlags = EventFlags{bits: 1 << 5,}

HCI Event: Hardware Error.

NUMBER_OF_COMPLETED_PACKETS: EventFlags = EventFlags{bits: 1 << 6,}

HCI Event: Number of completed packets.

ENCRYPTION_KEY_REFRESH: EventFlags = EventFlags{bits: 1 << 7,}

HCI Event: Encryption key refresh complete.

HAL_INITIALIZED: EventFlags = EventFlags{bits: 1 << 8,}

BlueNRG-MS Event: HAL Initialized.

GAP_LIMITED_DISCOVERABLE_TIMEOUT: EventFlags = EventFlags{bits: 1 << 9,}

BlueNRG Event: GAP Set Limited Discoverable complete.

GAP_PAIRING_COMPLETE: EventFlags = EventFlags{bits: 1 << 10,}

BlueNRG Event: GAP Pairing complete.

GAP_PASS_KEY_REQUEST: EventFlags = EventFlags{bits: 1 << 11,}

BlueNRG Event: GAP Pass Key Request.

GAP_AUTHORIZATION_REQUEST: EventFlags = EventFlags{bits: 1 << 12,}

BlueNRG Event: GAP Authorization Request.

GAP_PERIPHERAL_SECURITY_INITIATED: EventFlags = EventFlags{bits: 1 << 13,}

BlueNRG Event: GAP Peripheral Security Initiated.

GAP_BOND_LOST: EventFlags = EventFlags{bits: 1 << 14,}

BlueNRG Event: GAP Bond Lost.

GAP_PROCEDURE_COMPLETE: EventFlags = EventFlags{bits: 1 << 15,}

BlueNRG Event: GAP Procedure complete.

GAP_ADDRESS_NOT_RESOLVED: EventFlags = EventFlags{bits: 1 << 16,}

BlueNRG-MS Event: GAP Address Not Resolved.

L2CAP_CONNECTION_UPDATE_RESPONSE: EventFlags = EventFlags{bits: 1 << 17,}

BlueNRG Event: L2Cap Connection Update Response.

L2CAP_PROCEDURE_TIMEOUT: EventFlags = EventFlags{bits: 1 << 18,}

BlueNRG Event: L2Cap Procedure Timeout.

L2CAP_CONNECTION_UPDATE_REQUEST: EventFlags = EventFlags{bits: 1 << 19,}

BlueNRG Event: L2Cap Connection Update Request.

GATT_ATTRIBUTE_MODIFIED: EventFlags = EventFlags{bits: 1 << 20,}

BlueNRG Event: GATT Attribute modified.

GATT_PROCEDURE_TIMEOUT: EventFlags = EventFlags{bits: 1 << 21,}

BlueNRG Event: GATT timeout.

ATT_EXCHANGE_MTU_RESPONSE: EventFlags = EventFlags{bits: 1 << 22,}

BlueNRG Event: Exchange MTU Response.

ATT_FIND_INFORMATION_RESPONSE: EventFlags = EventFlags{bits: 1 << 23,}

BlueNRG Event: Find information response.

ATT_FIND_BY_TYPE_VALUE_RESPONSE: EventFlags = EventFlags{bits: 1 << 24,}

BlueNRG Event: Find by type value response.

ATT_READ_BY_TYPE_RESPONSE: EventFlags = EventFlags{bits: 1 << 25,}

BlueNRG Event: Find read by type response.

ATT_READ_RESPONSE: EventFlags = EventFlags{bits: 1 << 26,}

BlueNRG Event: Read response.

ATT_READ_BLOB_RESPONSE: EventFlags = EventFlags{bits: 1 << 27,}

BlueNRG Event: Read blob response.

ATT_READ_MULTIPLE_RESPONSE: EventFlags = EventFlags{bits: 1 << 28,}

BlueNRG Event: Read multiple response.

ATT_READ_BY_GROUP_TYPE_RESPONSE: EventFlags = EventFlags{bits: 1 << 29,}

BlueNRG Event: Read by group type response.

ATT_WRITE_RESPONSE: EventFlags = EventFlags{bits: 1 << 30,}

BlueNRG Event: ATT Write Response

ATT_PREPARE_WRITE_RESPONSE: EventFlags = EventFlags{bits: 1 << 31,}

BlueNRG Event: Prepare Write Response.

ATT_EXECUTE_WRITE_RESPONSE: EventFlags = EventFlags{bits: 1 << 32,}

BlueNRG Event: Execute write response.

GATT_INDICATION: EventFlags = EventFlags{bits: 1 << 33,}

BlueNRG Event: Indication received from server.

GATT_NOTIFICATION: EventFlags = EventFlags{bits: 1 << 34,}

BlueNRG Event: Notification received from server.

GATT_PROCEDURE_COMPLETE: EventFlags = EventFlags{bits: 1 << 35,}

BlueNRG Event: GATT Procedure complete.

GATT_ERROR_RESPONSE: EventFlags = EventFlags{bits: 1 << 36,}

BlueNRG Event: Error response received from server.

GATT_DISCOVER_OR_READ_CHARACTERISTIC_BY_UUID_RESPONSE: EventFlags = EventFlags{bits: 1 << 37,}

BlueNRG Event: Response to either "Discover Characteristic by UUID" or "Read Characteristic by UUID" request

GATT_WRITE_PERMIT_REQUEST: EventFlags = EventFlags{bits: 1 << 38,}

BlueNRG Event: Write request received by server.

GATT_READ_PERMIT_REQUEST: EventFlags = EventFlags{bits: 1 << 39,}

BlueNRG Event: Read request received by server.

GATT_READ_MULTIPLE_PERMIT_REQUEST: EventFlags = EventFlags{bits: 1 << 40,}

BlueNRG Event: Read multiple request received by server.

GATT_TX_POOL_AVAILABLE: EventFlags = EventFlags{bits: 1 << 41,}

BlueNRG-MS Event: TX Pool available event missed.

GATT_SERVER_RX_CONFIRMATION: EventFlags = EventFlags{bits: 1 << 42,}

BlueNRG-MS Event: Server confirmation.

GATT_PREPARE_WRITE_PERMIT_REQUEST: EventFlags = EventFlags{bits: 1 << 43,}

BlueNRG-MS Event: Prepare write permit request.

LINK_LAYER_CONNECTION_COMPLETE: EventFlags = EventFlags{bits: 1 << 44,}

BlueNRG-MS Event: Link Layer connection complete.

LINK_LAYER_ADVERTISING_REPORT: EventFlags = EventFlags{bits: 1 << 45,}

BlueNRG-MS Event: Link Layer advertising report.

LINK_LAYER_CONNECTION_UPDATE_COMPLETE: EventFlags = EventFlags{bits: 1 << 46,}

BlueNRG-MS Event: Link Layer connection update complete.

LINK_LAYER_READ_REMOTE_USED_FEATURES: EventFlags = EventFlags{bits: 1 << 47,}

BlueNRG-MS Event: Link Layer read remote used features.

LINK_LAYER_LTK_REQUEST: EventFlags = EventFlags{bits: 1 << 48,}

BlueNRG-MS Event: Link Layer long-term key request.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for EventFlags

impl PartialEq for EventFlags

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for EventFlags

impl Clone for EventFlags

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for EventFlags

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for EventFlags

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for EventFlags

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for EventFlags
[src]

Returns the "default value" for a type. Read more

impl Debug for EventFlags

Formats the value using the given formatter. Read more

impl Binary for EventFlags

Formats the value using the given formatter.

impl Octal for EventFlags

Formats the value using the given formatter.

impl LowerHex for EventFlags

Formats the value using the given formatter.

impl UpperHex for EventFlags

Formats the value using the given formatter.

impl BitOr for EventFlags

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for EventFlags

Adds the set of flags.

impl BitXor for EventFlags

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for EventFlags

Toggles the set of flags.

impl BitAnd for EventFlags

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for EventFlags

Disables all flags disabled in the set.

impl Sub for EventFlags

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for EventFlags

Disables all flags enabled in the set.

impl Not for EventFlags

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<EventFlags> for EventFlags

Extends a collection with the contents of an iterator. Read more

impl FromIterator<EventFlags> for EventFlags

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for EventFlags

impl Sync for EventFlags