Skip to main content

Service

Enum Service 

Source
#[non_exhaustive]
pub enum Service {
Show 92 variants GenericAccess, AlertNotification, AutomationIo, BatteryService, BloodPressure, BodyComposition, BondManagement, ContinuousGlucoseMonitoring, CurrentTime, CyclingPower, CyclingSpeedAndCadence, DeviceInformation, EnvironmentalSensing, FitnessMachine, GenericAttribute, Glucose, HealthThermometer, HeartRate, HttpProxy, HumanInterfaceDevice, ImmediateAlert, IndoorPositioning, InsulinDelivery, InternetProtocolSupport, LinkLoss, LocationAndNavigation, MeshProvisioning, OrgBluetoothServiceMeshProxy, NextDstChange, ObjectTransfer, PhoneAlertStatus, PulseOximeter, ReconnectionConfiguration, ReferenceTimeUpdate, RunningSpeedAndCadence, ScanParameters, TransportDiscovery, TxPower, UserData, WeightScale, ComPhillipsHueServiceSignifyNetherlands, ComPhillipsHueServiceLightControl, ComPhillipsHueServiceLightInformation, ComPhillipsHueServiceLightUpdate, ComAppleServiceNotificationCenter, ComAppleServiceMedia, ComAppleService7DFC6000, ComAppleService7DFC7000, ComAppleService7DFC8000, ComAppleService7DFC9000, OrgMicrobitServiceAccelerometer, OrgMicrobitServiceMagnetometer, OrgMicrobitServiceButton, OrgMicrobitServiceIoPin, OrgMicrobitServiceLed, OrgMicrobitServiceEvent, OrgMicrobitServiceDfuControl, OrgMicrobitServiceTemperature, ComNordicsemiServiceThingyConfiguration, ComNordicsemiServiceThingyWeatherStation, ComNordicsemiServiceThingyUi, ComNordicsemiServiceThingyMotion, ComNordicsemiServiceThingySound, ComNordicsemiServiceLedAndButton, ComNordicsemiServiceUart, ComGoogleServiceEddystone, ComGoogleServiceEddystoneConfiguration, ComGoogleServiceFastPair, ComNordicsemiServiceDfuLegacy, ComNordicsemiServiceDfuSecure, ComNordicsemiServiceDfuButtonlessExperimental, ComNordicsemiServiceEdgeImpulse, ComAppleServiceContacttracing, IoRuntimeMcumgrBleSmp, ComLegoServiceLwp3Hub, ComLegoServiceLwp3Bootloader, ComAdafruitServiceFileTransfer, ComAdafruitServiceTemperature, ComAdafruitServiceAccelerometer, ComAdafruitServiceLight, ComAdafruitServiceGyroscope, ComAdafruitServiceMagnetometer, ComAdafruitServiceButton, ComAdafruitServiceHumidity, ComAdafruitServiceBarometric, ComAdafruitServiceAddressablePixel, ComAdafruitServiceColor, ComAdafruitServiceSound, ComAdafruitServiceTone, ComAdafruitServiceQuaternion, ComAdafruitServiceProximity, ComTiServiceOad,
}
Available on crate feature id only.
Expand description

Assigned identifiers for GATT services.

Can be converted to and from UUIDs.

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

Generic Access

Source: gss

§

AlertNotification

Alert Notification Service

Source: gss

§

AutomationIo

Automation IO

Source: gss

§

BatteryService

Battery Service

Source: gss

§

BloodPressure

Blood Pressure

Source: gss

§

BodyComposition

Body Composition

Source: gss

§

BondManagement

Bond Management Service

Source: gss

§

ContinuousGlucoseMonitoring

Continuous Glucose Monitoring

Source: gss

§

CurrentTime

Current Time Service

Source: gss

§

CyclingPower

Cycling Power

Source: gss

§

CyclingSpeedAndCadence

Cycling Speed and Cadence

Source: gss

§

DeviceInformation

Device Information

Source: gss

§

EnvironmentalSensing

Environmental Sensing

Source: gss

§

FitnessMachine

Fitness Machine

Source: gss

§

GenericAttribute

Generic Attribute

Source: gss

§

Glucose

Glucose

Source: gss

§

HealthThermometer

Health Thermometer

Source: gss

§

HeartRate

Heart Rate

Source: gss

§

HttpProxy

HTTP Proxy

Source: gss

§

HumanInterfaceDevice

Human Interface Device

Source: gss

§

ImmediateAlert

Immediate Alert

Source: gss

§

IndoorPositioning

Indoor Positioning

Source: gss

§

InsulinDelivery

Insulin Delivery

Source: gss

§

InternetProtocolSupport

Internet Protocol Support Service

Source: gss

§

LinkLoss

Link Loss

Source: gss

§

LocationAndNavigation

Location and Navigation

Source: gss

§

MeshProvisioning

Mesh Provisioning Service

Source: gss

§

OrgBluetoothServiceMeshProxy

Mesh Proxy Service

Source: gss

§

NextDstChange

Next DST Change Service

Source: gss

§

ObjectTransfer

Object Transfer Service

Source: gss

§

PhoneAlertStatus

Phone Alert Status Service

Source: gss

§

PulseOximeter

Pulse Oximeter Service

Source: gss

§

ReconnectionConfiguration

Reconnection Configuration

Source: gss

§

ReferenceTimeUpdate

Reference Time Update Service

Source: gss

§

RunningSpeedAndCadence

Running Speed and Cadence

Source: gss

§

ScanParameters

Scan Parameters

Source: gss

§

TransportDiscovery

Transport Discovery

Source: gss

§

TxPower

Tx Power

Source: gss

§

UserData

User Data

Source: gss

§

WeightScale

Weight Scale

Source: gss

§

ComPhillipsHueServiceSignifyNetherlands

Signify Netherlands B.V. (formerly Phillips Lighting) Service

Source: phillips-hue

§

ComPhillipsHueServiceLightControl

Phillips Hue Light Control Service

Source: phillips-hue

§

ComPhillipsHueServiceLightInformation

Phillips Hue Light Information Service

Source: phillips-hue

§

ComPhillipsHueServiceLightUpdate

Phillips Hue Light Update Service

Source: phillips-hue

§

ComAppleServiceNotificationCenter

Apple Notification Center Service

Source: apple

§

ComAppleServiceMedia

Apple Media Service

Source: apple

§

ComAppleService7DFC6000

Apple Reserved Service

Source: apple

§

ComAppleService7DFC7000

Apple Reserved Service 1

Source: apple

§

ComAppleService7DFC8000

Apple Reserved Service 2

Source: apple

§

ComAppleService7DFC9000

Apple Reserved Service 3

Source: apple

§

OrgMicrobitServiceAccelerometer

micro:bit Accelerometer Service

Source: microbit

§

OrgMicrobitServiceMagnetometer

micro:bit Magnetometer Service

Source: microbit

§

OrgMicrobitServiceButton

micro:bit Button Service

Source: microbit

§

OrgMicrobitServiceIoPin

micro:bit IO Pin Service

Source: microbit

§

OrgMicrobitServiceLed

micro:bit LED Service

Source: microbit

§

OrgMicrobitServiceEvent

micro:bit Event Service

Source: microbit

§

OrgMicrobitServiceDfuControl

micro:bit DFU Control Service

Source: microbit

§

OrgMicrobitServiceTemperature

micro:bit Temperature Service

Source: microbit

§

ComNordicsemiServiceThingyConfiguration

Thingy Configuration Service

Source: nordic

§

ComNordicsemiServiceThingyWeatherStation

Thingy Weather Station Service

Source: nordic

§

ComNordicsemiServiceThingyUi

Thingy UI Service

Source: nordic

§

ComNordicsemiServiceThingyMotion

Thingy Motion Service

Source: nordic

§

ComNordicsemiServiceThingySound

Thingy Sound Service

Source: nordic

§

ComNordicsemiServiceLedAndButton

Nordic LED and Button Service

Source: nordic

§

ComNordicsemiServiceUart

Nordic UART Service

Source: nordic

§

ComGoogleServiceEddystone

Eddystone

Source: google

§

ComGoogleServiceEddystoneConfiguration

Eddystone Configuration Service

Source: google

§

ComGoogleServiceFastPair

Fast Pair Service

Source: google

§

ComNordicsemiServiceDfuLegacy

Legacy DFU Service

Source: nordic

§

ComNordicsemiServiceDfuSecure

Secure DFU Service

Source: nordic

§

ComNordicsemiServiceDfuButtonlessExperimental

Experimental Buttonless DFU Service

Source: nordic

§

ComNordicsemiServiceEdgeImpulse

Edge Impulse Remote Management Service

Source: nordic

§

ComAppleServiceContacttracing

Exposure Notification Service

Source: apple

§

IoRuntimeMcumgrBleSmp

SMP Service

Source: apache

§

ComLegoServiceLwp3Hub

LEGO® Wireless Protocol v3 Hub Service

Source: lego

§

ComLegoServiceLwp3Bootloader

LEGO® Wireless Protocol v3 Bootloader Service

Source: lego

§

ComAdafruitServiceFileTransfer

File Transfer Service by Adafruit

Source: adafruit

§

ComAdafruitServiceTemperature

Adafruit Temperature Service

Source: adafruit

§

ComAdafruitServiceAccelerometer

Adafruit Accelerometer Service

Source: adafruit

§

ComAdafruitServiceLight

Adafruit Light Service

Source: adafruit

§

ComAdafruitServiceGyroscope

Adafruit Gyroscope Service

Source: adafruit

§

ComAdafruitServiceMagnetometer

Adafruit Magnetometer Service

Source: adafruit

§

ComAdafruitServiceButton

Adafruit Button Service

Source: adafruit

§

ComAdafruitServiceHumidity

Adafruit Humidity Service

Source: adafruit

§

ComAdafruitServiceBarometric

Adafruit Barometric Service

Source: adafruit

§

ComAdafruitServiceAddressablePixel

Adafruit Addressable Service

Source: adafruit

§

ComAdafruitServiceColor

Adafruit Color Service

Source: adafruit

§

ComAdafruitServiceSound

Adafruit Sound Service

Source: adafruit

§

ComAdafruitServiceTone

Adafruit Tone Service

Source: adafruit

§

ComAdafruitServiceQuaternion

Adafruit Quaternion Service

Source: adafruit

§

ComAdafruitServiceProximity

Adafruit Proximity Service

Source: adafruit

§

ComTiServiceOad

Texas Instruments Over-the-Air Download (OAD) Service

Source: ti

Trait Implementations§

Source§

impl Clone for Service

Source§

fn clone(&self) -> Service

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 Debug for Service

Source§

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

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

impl<'de> Deserialize<'de> for Service

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Service

Source§

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

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

impl From<Service> for Uuid

Source§

fn from(s: Service) -> Uuid

Converts to this type from the input type.
Source§

impl FromStr for Service

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Service, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Service

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 Ord for Service

Source§

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

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

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

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

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

Restrict a value to a certain interval. Read more
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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 Serialize for Service

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&str> for Service

Source§

type Error = ParseError

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

fn try_from(s: &str) -> Result<Service, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl TryFrom<Uuid> for Service

Source§

type Error = Uuid

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

fn try_from(uuid: Uuid) -> Result<Self, Uuid>

Performs the conversion.
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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,