EventCode

Enum EventCode 

Source
pub enum EventCode {
Show 46 variants CommandComplete = 1, CommandStatus = 2, ControllerError = 3, IndexAdded = 4, IndexRemoved = 5, NewSettings = 6, ClassOfDeviceChanged = 7, LocalNameChanged = 8, NewLinkKey = 9, NewLongTermKey = 10, DeviceConnected = 11, DeviceDisconnect = 12, ConnectFailed = 13, PinCodeRequest = 14, UserConfirmationRequest = 15, UserPasskeyRequest = 16, AuthenticationFailed = 17, DeviceFound = 18, Discovering = 19, DeviceBlocked = 20, DeviceUnblocked = 21, DeviceUnpaired = 22, PasskeyNotify = 23, NewIdentityResolvingKey = 24, NewSignatureResolvingKey = 25, DeviceAdded = 26, DeviceRemoved = 27, NewConnectionParameter = 28, UnconfiguredIndexAdded = 29, UnconfiguredIndexRemoved = 30, NewConfigurationOptions = 31, ExtendedIndexAdded = 32, ExtendedIndexRemoved = 33, LocalOutOfBandExtendedDataUpdate = 34, AdvertisingAdded = 35, AdvertisingRemoved = 36, ExtendedControllerInformationChanged = 37, PhyConfigurationChanged = 38, ExperimentalFeatureChanged = 39, DefaultSystemConfigurationChanged = 40, DefaultRuntimeConfigurationChanged = 41, DeviceFlagsChanged = 42, AdvertisementMonitorAdded = 43, AdvertisementMonitorRemoved = 44, ControllerSuspend = 45, ControllerResume = 46,
}
Expand description

Command Code

Variants§

§

CommandComplete = 1

Command Complete Event

see bluez docs/mgmt-api.txt

§

CommandStatus = 2

Command Status Event

see bluez docs/mgmt-api.txt

§

ControllerError = 3

Controller Error Event

see bluez docs/mgmt-api.txt

§

IndexAdded = 4

Index Added Event

see bluez docs/mgmt-api.txt

§

IndexRemoved = 5

Index Removed Event

see bluez docs/mgmt-api.txt

§

NewSettings = 6

New Settings Event

see bluez docs/mgmt-api.txt

§

ClassOfDeviceChanged = 7

Class Of Device Changed Event

see bluez docs/mgmt-api.txt

§

LocalNameChanged = 8

Local Name Changed Event

see bluez docs/mgmt-api.txt

§

NewLinkKey = 9

New Link Key Event

see bluez docs/mgmt-api.txt

§

NewLongTermKey = 10

New Long Term Key Event

see bluez docs/mgmt-api.txt

§

DeviceConnected = 11

Device Connected Event

see bluez docs/mgmt-api.txt

§

DeviceDisconnect = 12

Device Disconnected Event

see bluez docs/mgmt-api.txt

§

ConnectFailed = 13

Connect Failed Event

see bluez docs/mgmt-api.txt

§

PinCodeRequest = 14

PIN Code Request Event

see bluez docs/mgmt-api.txt

§

UserConfirmationRequest = 15

User Confirmation Request Event

see bluez docs/mgmt-api.txt

§

UserPasskeyRequest = 16

User Passkey Request Event

see bluez docs/mgmt-api.txt

§

AuthenticationFailed = 17

Authentication Failed Event

see bluez docs/mgmt-api.txt

§

DeviceFound = 18

Device Found Event

see bluez docs/mgmt-api.txt

§

Discovering = 19

Discovering Event

see bluez docs/mgmt-api.txt

§

DeviceBlocked = 20

Device Blocked Event

see bluez docs/mgmt-api.txt

§

DeviceUnblocked = 21

Device Unblocked Event

see bluez docs/mgmt-api.txt

§

DeviceUnpaired = 22

Device Unpaired Event

see bluez docs/mgmt-api.txt

§

PasskeyNotify = 23

Passkey Notify Event

see bluez docs/mgmt-api.txt

§

NewIdentityResolvingKey = 24

New Identity Resolving Key Event

see bluez docs/mgmt-api.txt

§

NewSignatureResolvingKey = 25

New Signature Resolving Key Event

see bluez docs/mgmt-api.txt

§

DeviceAdded = 26

Device Added Event

see bluez docs/mgmt-api.txt

§

DeviceRemoved = 27

Device Removed Event

see bluez docs/mgmt-api.txt

§

NewConnectionParameter = 28

New Connection Parameter Event

see bluez docs/mgmt-api.txt

§

UnconfiguredIndexAdded = 29

Unconfigured Index Added Event

see bluez docs/mgmt-api.txt

§

UnconfiguredIndexRemoved = 30

Unconfigured Index Removed Event

see bluez docs/mgmt-api.txt

§

NewConfigurationOptions = 31

New Configuration Options Event

see bluez docs/mgmt-api.txt

§

ExtendedIndexAdded = 32

Extended Index Added Event

see bluez docs/mgmt-api.txt

§

ExtendedIndexRemoved = 33

Extended Index Removed Event

see bluez docs/mgmt-api.txt

§

LocalOutOfBandExtendedDataUpdate = 34

Local Out Of Band Extended Data Updated Event

see bluez docs/mgmt-api.txt

§

AdvertisingAdded = 35

Advertising Added Event

see bluez docs/mgmt-api.txt

§

AdvertisingRemoved = 36

Advertising Removed Event

see bluez docs/mgmt-api.txt

§

ExtendedControllerInformationChanged = 37

Extended Controller Information Changed Event

see bluez docs/mgmt-api.txt

§

PhyConfigurationChanged = 38

PHY Configuration Changed Event

see bluez docs/mgmt-api.txt

§

ExperimentalFeatureChanged = 39

Experimental Feature Changed Event

see bluez docs/mgmt-api.txt

§

DefaultSystemConfigurationChanged = 40

Default System Configuration Changed Event

see bluez docs/mgmt-api.txt

§

DefaultRuntimeConfigurationChanged = 41

Default Runtime Configuration Changed Event

see bluez docs/mgmt-api.txt

§

DeviceFlagsChanged = 42

Device Flags Changed Event

see bluez docs/mgmt-api.txt

§

AdvertisementMonitorAdded = 43

Advertisement Monitor Added Event

see bluez docs/mgmt-api.txt

§

AdvertisementMonitorRemoved = 44

Advertisement Monitor Removed Event

see bluez docs/mgmt-api.txt

§

ControllerSuspend = 45

Controller Suspend Event

see bluez docs/mgmt-api.txt

§

ControllerResume = 46

Controller Resume Event

see bluez docs/mgmt-api.txt

Trait Implementations§

Source§

impl Clone for EventCode

Source§

fn clone(&self) -> EventCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for EventCode

Source§

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

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

impl Hash for EventCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Pack for EventCode

Source§

fn pack<W>(&self, write: &mut W) -> Result<()>
where W: Write,

Source§

impl PartialEq for EventCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Unpack for EventCode

Source§

fn unpack<R>(read: &mut R) -> Result<Self>
where R: Read,

Source§

impl Eq for EventCode

Source§

impl StructuralPartialEq for EventCode

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.