Skip to main content

EventCode

Enum EventCode 

Source
#[repr(u64)]
pub enum EventCode {
Show 53 variants INQUIRY_COMPLETE = 1, INQUIRY_RESULT = 2, CONNECTION_COMPLETE = 3, CONNECTION_REQUEST = 4, DISCONNECTION_COMPLETE = 5, AUTHENTICATION_COMPLETE = 6, REMOTE_NAME_REQUEST_COMPLETE = 7, ENCRYPTION_CHANGE = 8, CHANGE_CONNECTION_LINK_KEY_COMPLETE = 9, CENTRAL_LINK_KEY_COMPLETE = 10, READ_REMOTE_SUPPORTED_FEATURES_COMPLETE = 11, READ_REMOTE_VERSION_INFORMATION_COMPLETE = 12, QOS_SETUP_COMPLETE = 13, COMMAND_COMPLETE = 14, COMMAND_STATUS = 15, HARDWARE_ERROR = 16, FLUSH_OCCURRED = 17, ROLE_CHANGE = 18, NUMBER_OF_COMPLETED_PACKETS = 19, MODE_CHANGE = 20, RETURN_LINK_KEYS = 21, PIN_CODE_REQUEST = 22, LINK_KEY_REQUEST = 23, LINK_KEY_NOTIFICATION = 24, LOOPBACK_COMMAND = 25, DATA_BUFFER_OVERFLOW = 26, MAX_SLOTS_CHANGE = 27, READ_CLOCK_OFFSET_COMPLETE = 28, CONNECTION_PACKET_TYPE_CHANGED = 29, QOS_VIOLATION = 30, PAGE_SCAN_REPETITION_MODE_CHANGE = 32, FLOW_SPECIFICATION_COMPLETE = 33, INQUIRY_RESULT_WITH_RSSI = 34, READ_REMOTE_EXTENDED_FEATURES_COMPLETE = 35, SYNCHRONOUS_CONNECTION_COMPLETE = 44, SYNCHRONOUS_CONNECTION_CHANGED = 45, SNIFF_SUBRATING = 46, EXTENDED_INQUIRY_RESULT = 47, ENCRYPTION_KEY_REFRESH_COMPLETE = 48, IO_CAPABILITY_REQUEST = 49, IO_CAPABILITY_RESPONSE = 50, USER_CONFIRMATION_REQUEST = 51, USER_PASSKEY_REQUEST = 52, REMOTE_OOB_DATA_REQUEST = 53, SIMPLE_PAIRING_COMPLETE = 54, LINK_SUPERVISION_TIMEOUT_CHANGED = 56, ENHANCED_FLUSH_COMPLETE = 57, USER_PASSKEY_NOTIFICATION = 59, KEYPRESS_NOTIFICATION = 60, REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION = 61, LE_META_EVENT = 62, NUMBER_OF_COMPLETED_DATA_BLOCKS = 72, VENDOR_DEBUG = 255,
}

Variants§

§

INQUIRY_COMPLETE = 1

§

INQUIRY_RESULT = 2

§

CONNECTION_COMPLETE = 3

§

CONNECTION_REQUEST = 4

§

DISCONNECTION_COMPLETE = 5

§

AUTHENTICATION_COMPLETE = 6

§

REMOTE_NAME_REQUEST_COMPLETE = 7

§

ENCRYPTION_CHANGE = 8

§

READ_REMOTE_SUPPORTED_FEATURES_COMPLETE = 11

§

READ_REMOTE_VERSION_INFORMATION_COMPLETE = 12

§

QOS_SETUP_COMPLETE = 13

§

COMMAND_COMPLETE = 14

§

COMMAND_STATUS = 15

§

HARDWARE_ERROR = 16

§

FLUSH_OCCURRED = 17

§

ROLE_CHANGE = 18

§

NUMBER_OF_COMPLETED_PACKETS = 19

§

MODE_CHANGE = 20

§

PIN_CODE_REQUEST = 22

§

LOOPBACK_COMMAND = 25

§

DATA_BUFFER_OVERFLOW = 26

§

MAX_SLOTS_CHANGE = 27

§

READ_CLOCK_OFFSET_COMPLETE = 28

§

CONNECTION_PACKET_TYPE_CHANGED = 29

§

QOS_VIOLATION = 30

§

PAGE_SCAN_REPETITION_MODE_CHANGE = 32

§

FLOW_SPECIFICATION_COMPLETE = 33

§

INQUIRY_RESULT_WITH_RSSI = 34

§

READ_REMOTE_EXTENDED_FEATURES_COMPLETE = 35

§

SYNCHRONOUS_CONNECTION_COMPLETE = 44

§

SYNCHRONOUS_CONNECTION_CHANGED = 45

§

SNIFF_SUBRATING = 46

§

EXTENDED_INQUIRY_RESULT = 47

§

ENCRYPTION_KEY_REFRESH_COMPLETE = 48

§

IO_CAPABILITY_REQUEST = 49

§

IO_CAPABILITY_RESPONSE = 50

§

USER_CONFIRMATION_REQUEST = 51

§

USER_PASSKEY_REQUEST = 52

§

REMOTE_OOB_DATA_REQUEST = 53

§

SIMPLE_PAIRING_COMPLETE = 54

§

ENHANCED_FLUSH_COMPLETE = 57

§

USER_PASSKEY_NOTIFICATION = 59

§

KEYPRESS_NOTIFICATION = 60

§

REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION = 61

§

LE_META_EVENT = 62

§

NUMBER_OF_COMPLETED_DATA_BLOCKS = 72

§

VENDOR_DEBUG = 255

Trait Implementations§

Source§

impl Clone for EventCode

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 Copy for EventCode

Source§

impl Debug for EventCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for EventCode

Source§

impl From<EventCode> for u8

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for u16

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for u32

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for u64

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for i8

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for i16

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for i32

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl From<EventCode> for i64

Source§

fn from(val: EventCode) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for EventCode

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl SafeCmp<EventCode> for EventCode

Source§

fn safe_eq(&self, other: Self) -> bool

Source§

fn safe_less(&self, other: Self) -> bool

Source§

impl SafeCmp<EventCode> for u64

Source§

fn safe_eq(&self, other: EventCode) -> bool

Source§

fn safe_less(&self, other: EventCode) -> bool

Source§

impl SafeCmp<EventCode> for i64

Source§

fn safe_eq(&self, other: EventCode) -> bool

Source§

fn safe_less(&self, other: EventCode) -> bool

Source§

impl SafeCmp<i32> for EventCode

Source§

fn safe_eq(&self, other: i32) -> bool

Source§

fn safe_less(&self, other: i32) -> bool

Source§

impl SafeCmp<i64> for EventCode

Source§

fn safe_eq(&self, other: i64) -> bool

Source§

fn safe_less(&self, other: i64) -> bool

Source§

impl SafeCmp<u32> for EventCode

Source§

fn safe_eq(&self, other: u32) -> bool

Source§

fn safe_less(&self, other: u32) -> bool

Source§

impl SafeCmp<u64> for EventCode

Source§

fn safe_eq(&self, other: u64) -> bool

Source§

fn safe_less(&self, other: u64) -> bool

Source§

impl StructuralPartialEq for EventCode

Source§

impl<V: Into<u64> + Copy> TryFromRaw<V> for EventCode

Source§

fn try_from_raw(val: V) -> Result<Self, Error<V>>

Auto Trait Implementations§

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.