Enum CommandCode

Source
pub enum CommandCode {
Show 82 variants ReadManagementVersionInformation = 1, ReadManagementSupportedCommands = 2, ReadControllerIndexList = 3, ReadControllerInformation = 4, SetPowered = 5, SetDiscoverable = 6, SetConnectable = 7, SetFastConnectable = 8, SetBondable = 9, SetLinkSecurity = 10, SetSecureSimplePairing = 11, SetHighSpeed = 12, SetLowEnergy = 13, SetDeviceClass = 14, SetLocalName = 15, AddUuid = 16, RemoveUuid = 17, LoadLinkKeys = 18, LoadLongTermKey = 19, Disconnect = 20, GetConnections = 21, PinCodeReply = 22, PinCodeNegativeReply = 23, SetIoCapability = 24, PairDevice = 25, CancelPairDevice = 26, UnpairDevice = 27, UserConfirmationReply = 28, UserConfirmationNegativeReply = 29, UserPasskeyReply = 30, UserPasskeyNegativeReply = 31, ReadLocalOutOfBandData = 32, AddRemoteOutOfBandData = 33, RemoveRemoteOutOfBandData = 34, StartDiscovery = 35, StopDiscovery = 36, ConfirmName = 37, BlockDevice = 38, UnblockDevice = 39, SetDeviceId = 40, SetAdvertising = 41, SetBrEdr = 42, SetStaticAddress = 43, SetScanParameters = 44, SetSecureConnections = 45, SetDebugKeys = 46, SetPrivacy = 47, LoadIdentityResolvingKeys = 48, GetConnectionInformation = 49, GetClockInformation = 50, AddDevice = 51, RemoveDevice = 52, LoadConnectionParameters = 53, ReadUnconfiguredControllerIndexList = 54, ReadControllerConfigurationInformation = 55, SetExternalConfiguration = 56, SetPublicAddress = 57, StartServiceDiscovery = 58, ReadLocalOutOfBandExtendedData = 59, ReadExtendedControllerIndexList = 60, ReadAdvertisingFeature = 61, AddAdvertising = 62, RemoveAdvertising = 63, GetAdvertisingSizeInformation = 64, StartLimitedDiscovery = 65, ReadExtendedControllerInformation = 66, SetApperance = 67, SetPhyConfiguration = 69, LoadBlockedKeys = 70, SetWidbandSpeech = 71, ReadSecurityInformation = 72, ReadExperimentalFeaturesInformation = 73, SetExperimentalFeature = 74, ReadDefaultSystemConfiguration = 75, SetDefaultSystemConfiguration = 76, ReadDefaultRuntimeConfiguration = 77, SetDefaultRuntimeConfiguration = 78, GetDeviceFlag = 79, SetDeviceFlag = 80, ReadAdvertisementMonitorFeatures = 81, AddAdvertisementPatternsMonitor = 82, RemoveAdvertisementPatternsMonitor = 83,
}
Expand description

Command Code

Variants§

§

ReadManagementVersionInformation = 1

Read Management Version Information Command

see bluez docs/mgmt-api.txt

§

ReadManagementSupportedCommands = 2

Read Management Supported Commands Command

see bluez docs/mgmt-api.txt

§

ReadControllerIndexList = 3

Read Controller Index List Command

see bluez docs/mgmt-api.txt

§

ReadControllerInformation = 4

Read Controller Information Command

see bluez docs/mgmt-api.txt

§

SetPowered = 5

Set Powered Command

see bluez docs/mgmt-api.txt

§

SetDiscoverable = 6

Set Discoverable Command

see bluez docs/mgmt-api.txt

§

SetConnectable = 7

Set Connectable Command

see bluez docs/mgmt-api.txt

§

SetFastConnectable = 8

Set Fast Connectable Command

see bluez docs/mgmt-api.txt

§

SetBondable = 9

Set Bondable Command

see bluez docs/mgmt-api.txt

§

SetLinkSecurity = 10

Set Link Security Command

see bluez docs/mgmt-api.txt

§

SetSecureSimplePairing = 11

Set Secure Simple Pairing Command

see bluez docs/mgmt-api.txt

§

SetHighSpeed = 12

Set High Speed Command

see bluez docs/mgmt-api.txt

§

SetLowEnergy = 13

Set Low Energy Command

see bluez docs/mgmt-api.txt

§

SetDeviceClass = 14

Set Device Class Command

see bluez docs/mgmt-api.txt

§

SetLocalName = 15

Set Local Name Command

see bluez docs/mgmt-api.txt

§

AddUuid = 16

Add UUID Command

see bluez docs/mgmt-api.txt

§

RemoveUuid = 17

Remove UUID Command

see bluez docs/mgmt-api.txt

§

LoadLinkKeys = 18

Load Link Keys Command

see bluez docs/mgmt-api.txt

§

LoadLongTermKey = 19

Load Long Term Keys Command

see bluez docs/mgmt-api.txt

§

Disconnect = 20

Disconnect Command

see bluez docs/mgmt-api.txt

§

GetConnections = 21

Get Connections Command

see bluez docs/mgmt-api.txt

§

PinCodeReply = 22

PIN Code Reply Command

see bluez docs/mgmt-api.txt

§

PinCodeNegativeReply = 23

PIN Code Negative Reply Command

see bluez docs/mgmt-api.txt

§

SetIoCapability = 24

Set IO Capability Command

see bluez docs/mgmt-api.txt

§

PairDevice = 25

Read Management Version Information Command

see bluez docs/mgmt-api.txt

§

CancelPairDevice = 26

Cancel Pair Device Command

see bluez docs/mgmt-api.txt

§

UnpairDevice = 27

Unpair Device Command

see bluez docs/mgmt-api.txt

§

UserConfirmationReply = 28

User Confirmation Reply Command

see bluez docs/mgmt-api.txt

§

UserConfirmationNegativeReply = 29

User Confirmation Negative Reply Command

see bluez docs/mgmt-api.txt

§

UserPasskeyReply = 30

User Passkey Reply Command

see bluez docs/mgmt-api.txt

§

UserPasskeyNegativeReply = 31

User Passkey Negative Reply Command

see bluez docs/mgmt-api.txt

§

ReadLocalOutOfBandData = 32

Read Local Out Of Band Data Command

see bluez docs/mgmt-api.txt

§

AddRemoteOutOfBandData = 33

Add Remote Out Of Band Data Command

see bluez docs/mgmt-api.txt

§

RemoveRemoteOutOfBandData = 34

Remove Remote Out Of Band Data Command

see bluez docs/mgmt-api.txt

§

StartDiscovery = 35

Start Discovery Command

see bluez docs/mgmt-api.txt

§

StopDiscovery = 36

Stop Discovery Command

see bluez docs/mgmt-api.txt

§

ConfirmName = 37

Confirm Name Command

see bluez docs/mgmt-api.txt

§

BlockDevice = 38

Block Device Command

see bluez docs/mgmt-api.txt

§

UnblockDevice = 39

Unblock Device Command

see bluez docs/mgmt-api.txt

§

SetDeviceId = 40

Set Device ID Command

see bluez docs/mgmt-api.txt

§

SetAdvertising = 41

Set Advertising Command

see bluez docs/mgmt-api.txt

§

SetBrEdr = 42

Set BR/EDR Command

see bluez docs/mgmt-api.txt

§

SetStaticAddress = 43

Read Management Version Information Command

see bluez docs/mgmt-api.txt

§

SetScanParameters = 44

Set Scan Parameters Command

see bluez docs/mgmt-api.txt

§

SetSecureConnections = 45

Set Secure Connections Command

see bluez docs/mgmt-api.txt

§

SetDebugKeys = 46

Set Debug Keys Command

see bluez docs/mgmt-api.txt

§

SetPrivacy = 47

Set Privacy Command

see bluez docs/mgmt-api.txt

§

LoadIdentityResolvingKeys = 48

Load Identity Resolving Keys Command

see bluez docs/mgmt-api.txt

§

GetConnectionInformation = 49

Get Connection Information Command

see bluez docs/mgmt-api.txt

§

GetClockInformation = 50

Get Clock Information Command

see bluez docs/mgmt-api.txt

§

AddDevice = 51

Add Device Command

see bluez docs/mgmt-api.txt

§

RemoveDevice = 52

Remove Device Command

see bluez docs/mgmt-api.txt

§

LoadConnectionParameters = 53

Load Connection Parameters Command

see bluez docs/mgmt-api.txt

§

ReadUnconfiguredControllerIndexList = 54

Read Unconfigured Controller Index List Command

see bluez docs/mgmt-api.txt

§

ReadControllerConfigurationInformation = 55

Read Controller Configuration Information Command

see bluez docs/mgmt-api.txt

§

SetExternalConfiguration = 56

Set External Configuration Command

see bluez docs/mgmt-api.txt

§

SetPublicAddress = 57

Set Public Address Command

see bluez docs/mgmt-api.txt

§

StartServiceDiscovery = 58

Start Service Discovery Command

see bluez docs/mgmt-api.txt

§

ReadLocalOutOfBandExtendedData = 59

Read Local Out Of Band Extended Data Command

see bluez docs/mgmt-api.txt

§

ReadExtendedControllerIndexList = 60

Read Management Version Information Command

see bluez docs/mgmt-api.txt

§

ReadAdvertisingFeature = 61

Read Advertising Features Command

see bluez docs/mgmt-api.txt

§

AddAdvertising = 62

Add Advertising Command

see bluez docs/mgmt-api.txt

§

RemoveAdvertising = 63

Remove Advertising Command

see bluez docs/mgmt-api.txt

§

GetAdvertisingSizeInformation = 64

Get Advertising Size Information Command

see bluez docs/mgmt-api.txt

§

StartLimitedDiscovery = 65

Start Limited Discovery Command

see bluez docs/mgmt-api.txt

§

ReadExtendedControllerInformation = 66

Read Extended Controller Information Command

see bluez docs/mgmt-api.txt

§

SetApperance = 67

Set Appearance Command

see bluez docs/mgmt-api.txt

§

SetPhyConfiguration = 69

Set PHY Configuration Command

see bluez docs/mgmt-api.txt

§

LoadBlockedKeys = 70

Load Blocked Keys Command

see bluez docs/mgmt-api.txt

§

SetWidbandSpeech = 71

Set Wideband Speech Command

see bluez docs/mgmt-api.txt

§

ReadSecurityInformation = 72

Read Security Information Command

see bluez docs/mgmt-api.txt

§

ReadExperimentalFeaturesInformation = 73

Read Experimental Features Information Command

see bluez docs/mgmt-api.txt

§

SetExperimentalFeature = 74

Set Experimental Feature Command

see bluez docs/mgmt-api.txt

§

ReadDefaultSystemConfiguration = 75

Read Default System Configuration Command

see bluez docs/mgmt-api.txt

§

SetDefaultSystemConfiguration = 76

Set Default System Configuration Command

see bluez docs/mgmt-api.txt

§

ReadDefaultRuntimeConfiguration = 77

Read Default Runtime Configuration Command

see bluez docs/mgmt-api.txt

§

SetDefaultRuntimeConfiguration = 78

Read Management Version Information Command

see bluez docs/mgmt-api.txt

§

GetDeviceFlag = 79

Get Device Flags Command

see bluez docs/mgmt-api.txt

§

SetDeviceFlag = 80

Set Device Flags Command

see bluez docs/mgmt-api.txt

§

ReadAdvertisementMonitorFeatures = 81

Read Advertisement Monitor Features Command

see bluez docs/mgmt-api.txt

§

AddAdvertisementPatternsMonitor = 82

Add Advertisement Patterns Monitor Command

see bluez docs/mgmt-api.txt

§

RemoveAdvertisementPatternsMonitor = 83

Remove Advertisement Monitor Command

see bluez docs/mgmt-api.txt

Trait Implementations§

Source§

impl Clone for CommandCode

Source§

fn clone(&self) -> CommandCode

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 CommandCode

Source§

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

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

impl Hash for CommandCode

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 CommandCode

Source§

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

Source§

impl PartialEq for CommandCode

Source§

fn eq(&self, other: &CommandCode) -> 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 CommandCode

Source§

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

Source§

impl Eq for CommandCode

Source§

impl StructuralPartialEq for CommandCode

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.