Service

Enum Service 

Source
#[non_exhaustive]
#[repr(u16)]
pub enum Service {
Show 64 variants GenericAccess = 6_144, GenericAttribute = 6_145, ImmediateAlert = 6_146, LinkLoss = 6_147, TxPower = 6_148, CurrentTime = 6_149, ReferenceTimeUpdate = 6_150, NextDstChange = 6_151, Glucose = 6_152, HealthThermometer = 6_153, DeviceInformation = 6_154, HeartRate = 6_157, PhoneAlertStatus = 6_158, Battery = 6_159, BloodPressure = 6_160, AlertNotification = 6_161, HumanInterfaceDevice = 6_162, ScanParameters = 6_163, RunningSpeedAndCadence = 6_164, AutomationIo = 6_165, CyclingSpeedAndCadence = 6_166, CyclingPower = 6_168, LocationAndNavigation = 6_169, EnvironmentalSensing = 6_170, BodyComposition = 6_171, UserData = 6_172, WeightScale = 6_173, BondManagement = 6_174, ContinuousGlucoseMonitoring = 6_175, InternetProtocolSupport = 6_176, IndoorPositioning = 6_177, PulseOximeter = 6_178, HttpProxy = 6_179, TransportDiscovery = 6_180, ObjectTransfer = 6_181, FitnessMachine = 6_182, MeshProvisioning = 6_183, MeshProxy = 6_184, ReconnectionConfiguration = 6_185, InsulinDelivery = 6_202, BinarySensor = 6_203, EmergencyConfiguration = 6_204, AuthorizationControl = 6_205, PhysicalActivityMonitor = 6_206, AudioInputControl = 6_211, VolumeControl = 6_212, VolumeOffsetControl = 6_213, CoordinatedSetIdentification = 6_214, DeviceTime = 6_215, MediaControl = 6_216, GenericMediaControl = 6_217, ConstantToneExtension = 6_218, TelephoneBearer = 6_219, GenericTelephoneBearer = 6_220, MicrophoneControl = 6_221, AudioStreamControl = 6_222, BroadcastAudioScan = 6_223, PublishedAudioCapabilities = 6_224, BasicAudioAnnouncement = 6_225, BroadcastAudioAnnouncement = 6_226, CommonAudio = 6_227, HearingAid = 6_228, Tmas = 6_229, PublicBroadcastAnnouncement = 6_230,
}
Expand description

GATT services ([Assigned Numbers] Section 3.4.2).

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

GenericAccess = 6_144

§

GenericAttribute = 6_145

§

ImmediateAlert = 6_146

§

LinkLoss = 6_147

§

TxPower = 6_148

§

CurrentTime = 6_149

§

ReferenceTimeUpdate = 6_150

§

NextDstChange = 6_151

§

Glucose = 6_152

§

HealthThermometer = 6_153

§

DeviceInformation = 6_154

§

HeartRate = 6_157

§

PhoneAlertStatus = 6_158

§

Battery = 6_159

§

BloodPressure = 6_160

§

AlertNotification = 6_161

§

HumanInterfaceDevice = 6_162

§

ScanParameters = 6_163

§

RunningSpeedAndCadence = 6_164

§

AutomationIo = 6_165

§

CyclingSpeedAndCadence = 6_166

§

CyclingPower = 6_168

§

LocationAndNavigation = 6_169

§

EnvironmentalSensing = 6_170

§

BodyComposition = 6_171

§

UserData = 6_172

§

WeightScale = 6_173

§

BondManagement = 6_174

§

ContinuousGlucoseMonitoring = 6_175

§

InternetProtocolSupport = 6_176

§

IndoorPositioning = 6_177

§

PulseOximeter = 6_178

§

HttpProxy = 6_179

§

TransportDiscovery = 6_180

§

ObjectTransfer = 6_181

§

FitnessMachine = 6_182

§

MeshProvisioning = 6_183

§

MeshProxy = 6_184

§

ReconnectionConfiguration = 6_185

§

InsulinDelivery = 6_202

§

BinarySensor = 6_203

§

EmergencyConfiguration = 6_204

§

AuthorizationControl = 6_205

§

PhysicalActivityMonitor = 6_206

§

AudioInputControl = 6_211

§

VolumeControl = 6_212

§

VolumeOffsetControl = 6_213

§

CoordinatedSetIdentification = 6_214

§

DeviceTime = 6_215

§

MediaControl = 6_216

§

GenericMediaControl = 6_217

§

ConstantToneExtension = 6_218

§

TelephoneBearer = 6_219

§

GenericTelephoneBearer = 6_220

§

MicrophoneControl = 6_221

§

AudioStreamControl = 6_222

§

BroadcastAudioScan = 6_223

§

PublishedAudioCapabilities = 6_224

§

BasicAudioAnnouncement = 6_225

§

BroadcastAudioAnnouncement = 6_226

§

CommonAudio = 6_227

§

HearingAid = 6_228

§

Tmas = 6_229

§

PublicBroadcastAnnouncement = 6_230

Implementations§

Source§

impl Service

Source

pub const GENERIC_ACCESS: Uuid16

Source

pub const GENERIC_ATTRIBUTE: Uuid16

Source

pub const IMMEDIATE_ALERT: Uuid16

Source

pub const TX_POWER: Uuid16

Source

pub const CURRENT_TIME: Uuid16

Source

pub const REFERENCE_TIME_UPDATE: Uuid16

Source

pub const NEXT_DST_CHANGE: Uuid16

Source

pub const GLUCOSE: Uuid16

Source

pub const HEALTH_THERMOMETER: Uuid16

Source

pub const DEVICE_INFORMATION: Uuid16

Source

pub const HEART_RATE: Uuid16

Source

pub const PHONE_ALERT_STATUS: Uuid16

Source

pub const BATTERY: Uuid16

Source

pub const BLOOD_PRESSURE: Uuid16

Source

pub const ALERT_NOTIFICATION: Uuid16

Source

pub const HUMAN_INTERFACE_DEVICE: Uuid16

Source

pub const SCAN_PARAMETERS: Uuid16

Source

pub const RUNNING_SPEED_AND_CADENCE: Uuid16

Source

pub const AUTOMATION_IO: Uuid16

Source

pub const CYCLING_SPEED_AND_CADENCE: Uuid16

Source

pub const CYCLING_POWER: Uuid16

Source

pub const LOCATION_AND_NAVIGATION: Uuid16

Source

pub const ENVIRONMENTAL_SENSING: Uuid16

Source

pub const BODY_COMPOSITION: Uuid16

Source

pub const USER_DATA: Uuid16

Source

pub const WEIGHT_SCALE: Uuid16

Source

pub const BOND_MANAGEMENT: Uuid16

Source

pub const CONTINUOUS_GLUCOSE_MONITORING: Uuid16

Source

pub const INTERNET_PROTOCOL_SUPPORT: Uuid16

Source

pub const INDOOR_POSITIONING: Uuid16

Source

pub const PULSE_OXIMETER: Uuid16

Source

pub const HTTP_PROXY: Uuid16

Source

pub const TRANSPORT_DISCOVERY: Uuid16

Source

pub const OBJECT_TRANSFER: Uuid16

Source

pub const FITNESS_MACHINE: Uuid16

Source

pub const MESH_PROVISIONING: Uuid16

Source

pub const MESH_PROXY: Uuid16

Source

pub const RECONNECTION_CONFIGURATION: Uuid16

Source

pub const INSULIN_DELIVERY: Uuid16

Source

pub const BINARY_SENSOR: Uuid16

Source

pub const EMERGENCY_CONFIGURATION: Uuid16

Source

pub const AUTHORIZATION_CONTROL: Uuid16

Source

pub const PHYSICAL_ACTIVITY_MONITOR: Uuid16

Source

pub const AUDIO_INPUT_CONTROL: Uuid16

Source

pub const VOLUME_CONTROL: Uuid16

Source

pub const VOLUME_OFFSET_CONTROL: Uuid16

Source

pub const COORDINATED_SET_IDENTIFICATION: Uuid16

Source

pub const DEVICE_TIME: Uuid16

Source

pub const MEDIA_CONTROL: Uuid16

Source

pub const GENERIC_MEDIA_CONTROL: Uuid16

Source

pub const CONSTANT_TONE_EXTENSION: Uuid16

Source

pub const TELEPHONE_BEARER: Uuid16

Source

pub const GENERIC_TELEPHONE_BEARER: Uuid16

Source

pub const MICROPHONE_CONTROL: Uuid16

Source

pub const AUDIO_STREAM_CONTROL: Uuid16

Source

pub const BROADCAST_AUDIO_SCAN: Uuid16

Source

pub const PUBLISHED_AUDIO_CAPABILITIES: Uuid16

Source

pub const BASIC_AUDIO_ANNOUNCEMENT: Uuid16

Source

pub const BROADCAST_AUDIO_ANNOUNCEMENT: Uuid16

Source

pub const COMMON_AUDIO: Uuid16

Source

pub const HEARING_AID: Uuid16

Source

pub const TMAS: Uuid16

Source

pub const PUBLIC_BROADCAST_ANNOUNCEMENT: Uuid16

Source

pub const fn uuid(self) -> Uuid

Returns the Uuid representation of the variant.

Source

pub const fn uuid16(self) -> Uuid16

Returns the Uuid16 representation of the variant.

Source§

impl Service

Source

pub const fn singleton(self) -> bool

Returns whether the server can host at most one instances of this service.

Trait Implementations§

Source§

impl Clone for Service

Source§

fn clone(&self) -> Service

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 Service

Source§

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

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

impl Display for Service

Source§

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

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

impl From<Service> for Uuid

Source§

fn from(v: Service) -> Self

Converts to this type from the input type.
Source§

impl From<Service> for Uuid16

Source§

fn from(v: Service) -> Self

Converts to this type from the input type.
Source§

impl From<Service> for u16

Source§

fn from(enum_value: Service) -> Self

Converts to this type from the input type.
Source§

impl Ord for Service

Source§

fn cmp(&self, other: &Service) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<Service> for Uuid

Source§

fn eq(&self, rhs: &Service) -> 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 PartialEq<Service> for Uuid16

Source§

fn eq(&self, rhs: &Service) -> 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 PartialEq<Uuid> for Service

Source§

fn eq(&self, rhs: &Uuid) -> 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 PartialEq<Uuid16> for Service

Source§

fn eq(&self, rhs: &Uuid16) -> 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 PartialEq for Service

Source§

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

Source§

fn partial_cmp(&self, other: &Service) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<Uuid16> for Service

Source§

type Error = TryFromPrimitiveError<Service>

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

fn try_from(u: Uuid16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u16> for Service

Source§

type Error = TryFromPrimitiveError<Service>

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

fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for Service

Source§

const NAME: &'static str = "Service"

Source§

type Primitive = u16

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl Copy for Service

Source§

impl Eq for Service

Source§

impl StructuralPartialEq for Service

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.