Enum CommonDataType

Source
#[repr(u8)]
pub enum CommonDataType {
Show 47 variants Flags = 1, IncompleteListOf16BitServiceClassUuids = 2, CompleteListOf16BitServiceClassUuids = 3, IncompleteListOf32BitServiceClassUuids = 4, CompleteListOf32BitServiceClassUuids = 5, IncompleteListOf128BitServiceClassUuids = 6, CompleteListOf128BitServiceClassUuids = 7, ShortenedLocalName = 8, CompleteLocalName = 9, TxPowerLevel = 10, ClassOfDevice = 13, SimplePairingHashC192 = 14, SimplePairingRandomizerR192 = 15, DeviceId = 16, SecurityManagerTkValue = 17, PeripheralConnectionIntervalRange = 18, ListOf16BitServiceSolicitationUuids = 20, ListOf128BitServiceSolicitationUuids = 21, ServiceData16BitUuid = 22, PublicTargetAddress = 23, RandomTargetAddress = 24, Appearance = 25, AdvertisingInterval = 26, LeBluetoothDeviceAddress = 27, LeRole = 28, SimplePairingHashC256 = 29, SimplePairingRandomizerR256 = 30, ListOf32BitServiceSolicitationUuids = 31, ServiceData32BitUuid = 32, ServiceData128BitUuid = 33, LeSecureConnectionsConfirmationValue = 34, LeSecureConnectionsRandomValue = 35, Uri = 36, IndoorPositioning = 37, TransportDiscoveryData = 38, LeSupportedFeatures = 39, ChannelMapUpdateIndication = 40, PbAdv = 41, MeshMessage = 42, MeshBeacon = 43, BigInfo = 44, BroadcastCode = 45, ResolvableSetIdentifier = 46, AdvertisingIntervalLong = 47, BroadcastName = 48, ThreeDInformationData = 61, ManufacturerSpecificData = 255,
}
Expand description

Enumeration of “Common Data Types” from the Bluetooth Assigned Numbers registry.

Variants§

§

Flags = 1

Ref: Core Specification Supplement, Part A, Section 1.3

§

IncompleteListOf16BitServiceClassUuids = 2

Ref: Core Specification Supplement, Part A, Section 1.1

§

CompleteListOf16BitServiceClassUuids = 3

Ref: Core Specification Supplement, Part A, Section 1.1

§

IncompleteListOf32BitServiceClassUuids = 4

Ref: Core Specification Supplement, Part A, Section 1.1

§

CompleteListOf32BitServiceClassUuids = 5

Ref: Core Specification Supplement, Part A, Section 1.1

§

IncompleteListOf128BitServiceClassUuids = 6

Ref: Core Specification Supplement, Part A, Section 1.1

§

CompleteListOf128BitServiceClassUuids = 7

Ref: Core Specification Supplement, Part A, Section 1.1

§

ShortenedLocalName = 8

Ref: Core Specification Supplement, Part A, Section 1.2

§

CompleteLocalName = 9

Ref: Core Specification Supplement, Part A, Section 1.2

§

TxPowerLevel = 10

Ref: Core Specification Supplement, Part A, Section 1.5

§

ClassOfDevice = 13

Ref: Core Specification Supplement, Part A, Section 1.6

§

SimplePairingHashC192 = 14

Ref: Core Specification Supplement, Part A, Section 1.6

§

SimplePairingRandomizerR192 = 15

Ref: Core Specification Supplement, Part A, Section 1.6

§

DeviceId = 16

Ref: Device ID Profile

§

SecurityManagerTkValue = 17

Ref: Core Specification Supplement, Part A, Section 1.7

§

PeripheralConnectionIntervalRange = 18

Ref: Core Specification Supplement, Part A, Section 1.9

§

ListOf16BitServiceSolicitationUuids = 20

Ref: Core Specification Supplement, Part A, Section 1.10

§

ListOf128BitServiceSolicitationUuids = 21

Ref: Core Specification Supplement, Part A, Section 1.10

§

ServiceData16BitUuid = 22

Ref: Core Specification Supplement, Part A, Section 1.11

§

PublicTargetAddress = 23

Ref: Core Specification Supplement, Part A, Section 1.13

§

RandomTargetAddress = 24

Ref: Core Specification Supplement, Part A, Section 1.14

§

Appearance = 25

Ref: Core Specification Supplement, Part A, Section 1.12

§

AdvertisingInterval = 26

Ref: Core Specification Supplement, Part A, Section 1.15

§

LeBluetoothDeviceAddress = 27

Ref: Core Specification Supplement, Part A, Section 1.16

§

LeRole = 28

Ref: Core Specification Supplement, Part A, Section 1.17

§

SimplePairingHashC256 = 29

Ref: Core Specification Supplement, Part A, Section 1.6

§

SimplePairingRandomizerR256 = 30

Ref: Core Specification Supplement, Part A, Section 1.6

§

ListOf32BitServiceSolicitationUuids = 31

Ref: Core Specification Supplement, Part A, Section 1.10

§

ServiceData32BitUuid = 32

Ref: Core Specification Supplement, Part A, Section 1.11

§

ServiceData128BitUuid = 33

Ref: Core Specification Supplement, Part A, Section 1.11

§

LeSecureConnectionsConfirmationValue = 34

Ref: Core Specification Supplement, Part A, Section 1.6

§

LeSecureConnectionsRandomValue = 35

Ref: Core Specification Supplement, Part A, Section 1.6

§

Uri = 36

Ref: Core Specification Supplement, Part A, Section 1.18

§

IndoorPositioning = 37

Ref: Indoor Positioning Service

§

TransportDiscoveryData = 38

Ref: Transport Discovery Service

§

LeSupportedFeatures = 39

Ref: Core Specification Supplement, Part A, Section 1.19

§

ChannelMapUpdateIndication = 40

Ref: Core Specification Supplement, Part A, Section 1.20

§

PbAdv = 41

Ref: Mesh Profile Specification, Section 5.2.1

§

MeshMessage = 42

Ref: Mesh Profile Specification, Section 3.3.1

§

MeshBeacon = 43

Ref: Mesh Profile Specification, Section 3.9

§

BigInfo = 44

Ref: Core Specification Supplement, Part A, Section 1.21

§

BroadcastCode = 45

Ref: Core Specification Supplement, Part A, Section 1.22

§

ResolvableSetIdentifier = 46

Ref: Coordinated Set Identification Profile

§

AdvertisingIntervalLong = 47

Ref: Core Specification Supplement, Part A, Section 1.15

§

BroadcastName = 48

Ref: Public Broadcast Profile

§

ThreeDInformationData = 61

Ref: 3D Synchronization Profile

§

ManufacturerSpecificData = 255

Ref: Core Specification Supplement, Part A, Section 1.4

Trait Implementations§

Source§

impl Clone for CommonDataType

Source§

fn clone(&self) -> CommonDataType

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 CommonDataType

Source§

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

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

impl PartialEq for CommonDataType

Source§

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

Source§

impl StructuralPartialEq for CommonDataType

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, 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.