Skip to main content

CommonDataType

Enum CommonDataType 

Source
#[repr(u64)]
pub enum CommonDataType {
Show 50 variants FLAGS = 1, INCOMPLETE_LIST_16_BIT_SERVICE_CLASS_UUIDS = 2, COMPLETE_LIST_16_BIT_SERVICE_CLASS_UUIDS = 3, INCOMPLETE_LIST_32_BIT_SERVICE_CLASS_UUIDS = 4, COMPLETE_LIST_32_BIT_SERVICE_CLASS_UUIDS = 5, INCOMPLETE_LIST_128_BIT_SERVICE_CLASS_UUIDS = 6, COMPLETE_LIST_128_BIT_SERVICE_CLASS_UUIDS = 7, SHORTENED_LOCAL_NAME = 8, COMPLETE_LOCAL_NAME = 9, TX_POWER_LEVEL = 10, CLASS_OF_DEVICE = 13, SIMPLE_PAIRING_HASH_C_192 = 14, SIMPLE_PAIRING_RANDOMIZER_R_192 = 15, DEVICE_ID = 16, SECURITY_MANAGER_OUT_OF_BAND_FLAGS = 17, PERIPHERAL_CONNECTION_INTERVAL_RANGE = 18, LIST_16_BIT_SERVICE_SOLICITATION_UUIDS = 20, LIST_128_BIT_SERVICE_SOLICITATION_UUIDS = 21, SERVICE_DATA_16_BIT_UUID = 22, PUBLIC_TARGET_ADDRESS = 23, RANDOM_TARGET_ADDRESS = 24, APPEARANCE = 25, ADVERTISING_INTERVAL = 26, LE_BLUETOOTH_DEVICE_ADDRESS = 27, LE_ROLE = 28, SIMPLE_PAIRING_HASH_C_256 = 29, SIMPLE_PAIRING_RANDOMIZER_R_256 = 30, LIST_32_BIT_SERVICE_SOLICITATION_UUIDS = 31, SERVICE_DATA_32_BIT_UUID = 32, SERVICE_DATA_128_BIT_UUID = 33, LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE = 34, LE_SECURE_CONNECTIONS_RANDOM_VALUE = 35, URI = 36, INDOOR_POSITIONING = 37, TRANSPORT_DISCOVERY_DATA = 38, LE_SUPPORTED_FEATURES = 39, CHANNEL_MAP_UPDATE_INFORMATION = 40, PB_ADV = 41, MESH_MESSAGE = 42, MESH_BEACON = 43, BIG_INFO = 44, BROADCAST_CODE = 45, RESOLVABLE_IDENTIFIER = 46, ADVERTISING_INTERVAL_LONG = 47, BROADCAST_NAME = 48, ENCRYPTED_ADVERTISING_DATA = 49, PERIODIC_ADVERTISING_RESPONSE_TIMING_INFORMATION = 50, ELECTRONIC_SHELF_LABEL = 52, INFORMATION_DATA_3D = 61, MANUFACTURER_SPECIFIC_DATA = 255,
}

Variants§

§

FLAGS = 1

§

INCOMPLETE_LIST_16_BIT_SERVICE_CLASS_UUIDS = 2

§

COMPLETE_LIST_16_BIT_SERVICE_CLASS_UUIDS = 3

§

INCOMPLETE_LIST_32_BIT_SERVICE_CLASS_UUIDS = 4

§

COMPLETE_LIST_32_BIT_SERVICE_CLASS_UUIDS = 5

§

INCOMPLETE_LIST_128_BIT_SERVICE_CLASS_UUIDS = 6

§

COMPLETE_LIST_128_BIT_SERVICE_CLASS_UUIDS = 7

§

SHORTENED_LOCAL_NAME = 8

§

COMPLETE_LOCAL_NAME = 9

§

TX_POWER_LEVEL = 10

§

CLASS_OF_DEVICE = 13

§

SIMPLE_PAIRING_HASH_C_192 = 14

§

SIMPLE_PAIRING_RANDOMIZER_R_192 = 15

§

DEVICE_ID = 16

§

SECURITY_MANAGER_OUT_OF_BAND_FLAGS = 17

§

PERIPHERAL_CONNECTION_INTERVAL_RANGE = 18

§

LIST_16_BIT_SERVICE_SOLICITATION_UUIDS = 20

§

LIST_128_BIT_SERVICE_SOLICITATION_UUIDS = 21

§

SERVICE_DATA_16_BIT_UUID = 22

§

PUBLIC_TARGET_ADDRESS = 23

§

RANDOM_TARGET_ADDRESS = 24

§

APPEARANCE = 25

§

ADVERTISING_INTERVAL = 26

§

LE_BLUETOOTH_DEVICE_ADDRESS = 27

§

LE_ROLE = 28

§

SIMPLE_PAIRING_HASH_C_256 = 29

§

SIMPLE_PAIRING_RANDOMIZER_R_256 = 30

§

LIST_32_BIT_SERVICE_SOLICITATION_UUIDS = 31

§

SERVICE_DATA_32_BIT_UUID = 32

§

SERVICE_DATA_128_BIT_UUID = 33

§

LE_SECURE_CONNECTIONS_CONFIRMATION_VALUE = 34

§

LE_SECURE_CONNECTIONS_RANDOM_VALUE = 35

§

URI = 36

§

INDOOR_POSITIONING = 37

§

TRANSPORT_DISCOVERY_DATA = 38

§

LE_SUPPORTED_FEATURES = 39

§

CHANNEL_MAP_UPDATE_INFORMATION = 40

§

PB_ADV = 41

§

MESH_MESSAGE = 42

§

MESH_BEACON = 43

§

BIG_INFO = 44

§

BROADCAST_CODE = 45

§

RESOLVABLE_IDENTIFIER = 46

§

ADVERTISING_INTERVAL_LONG = 47

§

BROADCAST_NAME = 48

§

ENCRYPTED_ADVERTISING_DATA = 49

§

PERIODIC_ADVERTISING_RESPONSE_TIMING_INFORMATION = 50

§

ELECTRONIC_SHELF_LABEL = 52

§

INFORMATION_DATA_3D = 61

§

MANUFACTURER_SPECIFIC_DATA = 255

Trait Implementations§

Source§

impl Clone for CommonDataType

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 CommonDataType

Source§

impl Debug for CommonDataType

Source§

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

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

impl Eq for CommonDataType

Source§

impl From<CommonDataType> for u8

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for u16

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for u32

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for u64

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for i8

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for i16

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for i32

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl From<CommonDataType> for i64

Source§

fn from(val: CommonDataType) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CommonDataType

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<CommonDataType> for CommonDataType

Source§

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

Source§

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

Source§

impl SafeCmp<CommonDataType> for u64

Source§

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

Source§

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

Source§

impl SafeCmp<CommonDataType> for i64

Source§

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

Source§

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

Source§

impl SafeCmp<i32> for CommonDataType

Source§

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

Source§

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

Source§

impl SafeCmp<i64> for CommonDataType

Source§

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

Source§

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

Source§

impl SafeCmp<u32> for CommonDataType

Source§

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

Source§

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

Source§

impl SafeCmp<u64> for CommonDataType

Source§

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

Source§

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

Source§

impl StructuralPartialEq for CommonDataType

Source§

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

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.