Struct bluetooth_hci::host::EventFlags[]

pub struct EventFlags { /* fields omitted */ }

Event flags defined for the set_event_mask command.

Methods

impl EventFlags

INQUIRY_COMPLETE: EventFlags = EventFlags{bits: 1,}

Inquiry complete event

INQUIRY_RESULT: EventFlags = EventFlags{bits: 2,}

Inquiry result event

CONNECTION_COMPLETE: EventFlags = EventFlags{bits: 4,}

Connection complete event

CONNECTION_REQUEST: EventFlags = EventFlags{bits: 8,}

Connection request event

DISCONNECTION_COMPLETE: EventFlags = EventFlags{bits: 16,}

Disconnection complete event

AUTHENTICATION_COMPLETE: EventFlags = EventFlags{bits: 32,}

Authentication complete event

REMOTE_NAME_REQUEST_COMPLETE: EventFlags = EventFlags{bits: 64,}

Remote name request complete event

ENCRYPTION_CHANGE: EventFlags = EventFlags{bits: 128,}

Encryption change event

CHANGE_CONNECTION_LINK_KEY_COMPLETE: EventFlags = EventFlags{bits: 256,}

Change connection link key complete event

MASTER_LINK_KEY_COMPLETE: EventFlags = EventFlags{bits: 512,}

Master link key complete event

READ_REMOTE_SUPPORTED_FEATURES_COMPLETE: EventFlags = EventFlags{bits: 1024,}

Read remote supported features complete event

READ_REMOTE_VERSION_INFORMATION_COMPLETE: EventFlags = EventFlags{bits: 2048,}

Read remote version information complete event

QOS_SETUP_COMPLETE: EventFlags = EventFlags{bits: 4096,}

Qos setup complete event

HARDWARE_ERROR: EventFlags = EventFlags{bits: 32768,}

Hardware error event

FLUSH_OCCURRED: EventFlags = EventFlags{bits: 65536,}

Flush occurred event

ROLE_CHANGE: EventFlags = EventFlags{bits: 131072,}

Role change event

MODE_CHANGE: EventFlags = EventFlags{bits: 524288,}

Mode change event

RETURN_LINK_KEYS: EventFlags = EventFlags{bits: 1048576,}

Return link keys event

PIN_CODE_REQUEST: EventFlags = EventFlags{bits: 2097152,}

Pin code request event

LINK_KEY_REQUEST: EventFlags = EventFlags{bits: 4194304,}

Link key request event

LINK_KEY_NOTIFICATION: EventFlags = EventFlags{bits: 8388608,}

Link key notification event

LOOPBACK_COMMAND: EventFlags = EventFlags{bits: 16777216,}

Loopback command event

DATA_BUFFER_OVERFLOW: EventFlags = EventFlags{bits: 33554432,}

Data buffer overflow event

MAX_SLOTS_CHANGE: EventFlags = EventFlags{bits: 67108864,}

Max slots change event

READ_CLOCK_OFFSET_COMPLETE: EventFlags = EventFlags{bits: 134217728,}

Read clock offset complete event

CONNECTION_PACKET_TYPE_CHANGED: EventFlags = EventFlags{bits: 268435456,}

Connection packet type changed event

QOS_VIOLATION: EventFlags = EventFlags{bits: 536870912,}

Qos violation event

Deprecated
PAGE_SCAN_MODE_CHANGE: EventFlags = EventFlags{bits: 1073741824,}

Page scan mode change event. Deprecated in Bluetooth spec.

PAGE_SCAN_REPETITION_MODE_CHANGE: EventFlags = EventFlags{bits: 2147483648,}

Page scan repetition mode change event

FLOW_SPECIFICATION_COMPLETE: EventFlags = EventFlags{bits: 4294967296,}

Flow specification complete event

INQUIRY_RESULT_WITH_RSSI: EventFlags = EventFlags{bits: 8589934592,}

Inquiry result with rssi event

READ_REMOTE_EXTENDED_FEATURES_COMPLETE: EventFlags = EventFlags{bits: 17179869184,}

Read remote extended features complete event

SYNCHRONOUS_CONNECTION_COMPLETE: EventFlags = EventFlags{bits: 8796093022208,}

Synchronous connection complete event

SYNCHRONOUS_CONNECTION_CHANGED: EventFlags = EventFlags{bits: 17592186044416,}

Synchronous connection changed event

SNIFF_SUBRATING: EventFlags = EventFlags{bits: 35184372088832,}

Sniff subrating event

EXTENDED_INQUIRY_RESULT: EventFlags = EventFlags{bits: 70368744177664,}

Extended inquiry result event

ENCRYPTION_KEY_REFRESH_COMPLETE: EventFlags = EventFlags{bits: 140737488355328,}

Encryption key refresh complete event

IO_CAPABILITY_REQUEST: EventFlags = EventFlags{bits: 281474976710656,}

Io capability request event

IO_CAPABILITY_REQUEST_REPLY: EventFlags = EventFlags{bits: 562949953421312,}

Io capability request reply event

USER_CONFIRMATION_REQUEST: EventFlags = EventFlags{bits: 1125899906842624,}

User confirmation request event

USER_PASSKEY_REQUEST: EventFlags = EventFlags{bits: 2251799813685248,}

User passkey request event

REMOTE_OOB_DATA_REQUEST: EventFlags = EventFlags{bits: 4503599627370496,}

Remote oob data request event

SIMPLE_PAIRING_COMPLETE: EventFlags = EventFlags{bits: 9007199254740992,}

Simple pairing complete event

LINK_SUPERVISION_TIMEOUT_CHANGED: EventFlags = EventFlags{bits: 36028797018963968,}

Link supervision timeout changed event

ENHANCED_FLUSH_COMPLETE: EventFlags = EventFlags{bits: 72057594037927936,}

Enhanced flush complete event

USER_PASSKEY_NOTIFICATION: EventFlags = EventFlags{bits: 288230376151711744,}

User passkey notification event

KEYPRESS_NOTIFICATION: EventFlags = EventFlags{bits: 576460752303423488,}

Keypress notification event

REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION: EventFlags = EventFlags{bits: 1152921504606846976,}

Remote host supported features notification event

LE_META_EVENT: EventFlags = EventFlags{bits: 2305843009213693952,}

LE meta-events

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