#[non_exhaustive]
#[repr(u16)]
pub enum Service {
Show 64 variants GenericAccess, GenericAttribute, ImmediateAlert, LinkLoss, TxPower, CurrentTime, ReferenceTimeUpdate, NextDstChange, Glucose, HealthThermometer, DeviceInformation, HeartRate, PhoneAlertStatus, Battery, BloodPressure, AlertNotification, HumanInterfaceDevice, ScanParameters, RunningSpeedAndCadence, AutomationIo, CyclingSpeedAndCadence, CyclingPower, LocationAndNavigation, EnvironmentalSensing, BodyComposition, UserData, WeightScale, BondManagement, ContinuousGlucoseMonitoring, InternetProtocolSupport, IndoorPositioning, PulseOximeter, HttpProxy, TransportDiscovery, ObjectTransfer, FitnessMachine, MeshProvisioning, MeshProxy, ReconnectionConfiguration, InsulinDelivery, BinarySensor, EmergencyConfiguration, AuthorizationControl, PhysicalActivityMonitor, AudioInputControl, VolumeControl, VolumeOffsetControl, CoordinatedSetIdentification, DeviceTime, MediaControl, GenericMediaControl, ConstantToneExtension, TelephoneBearer, GenericTelephoneBearer, MicrophoneControl, AudioStreamControl, BroadcastAudioScan, PublishedAudioCapabilities, BasicAudioAnnouncement, BroadcastAudioAnnouncement, CommonAudio, HearingAid, Tmas, PublicBroadcastAnnouncement,
}
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

§

GenericAttribute

§

ImmediateAlert

§

LinkLoss

§

TxPower

§

CurrentTime

§

ReferenceTimeUpdate

§

NextDstChange

§

Glucose

§

HealthThermometer

§

DeviceInformation

§

HeartRate

§

PhoneAlertStatus

§

Battery

§

BloodPressure

§

AlertNotification

§

HumanInterfaceDevice

§

ScanParameters

§

RunningSpeedAndCadence

§

AutomationIo

§

CyclingSpeedAndCadence

§

CyclingPower

§

LocationAndNavigation

§

EnvironmentalSensing

§

BodyComposition

§

UserData

§

WeightScale

§

BondManagement

§

ContinuousGlucoseMonitoring

§

InternetProtocolSupport

§

IndoorPositioning

§

PulseOximeter

§

HttpProxy

§

TransportDiscovery

§

ObjectTransfer

§

FitnessMachine

§

MeshProvisioning

§

MeshProxy

§

ReconnectionConfiguration

§

InsulinDelivery

§

BinarySensor

§

EmergencyConfiguration

§

AuthorizationControl

§

PhysicalActivityMonitor

§

AudioInputControl

§

VolumeControl

§

VolumeOffsetControl

§

CoordinatedSetIdentification

§

DeviceTime

§

MediaControl

§

GenericMediaControl

§

ConstantToneExtension

§

TelephoneBearer

§

GenericTelephoneBearer

§

MicrophoneControl

§

AudioStreamControl

§

BroadcastAudioScan

§

PublishedAudioCapabilities

§

BasicAudioAnnouncement

§

BroadcastAudioAnnouncement

§

CommonAudio

§

HearingAid

§

Tmas

§

PublicBroadcastAnnouncement

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 copy 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) -> Selfwhere Self: Sized,

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

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

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

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

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

impl PartialEq<Service> for Service

source§

fn eq(&self, other: &Service) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Service> for Uuid

source§

fn eq(&self, rhs: &Service) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Service> 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<Uuid16> for Service

§

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

§

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

§

type Primitive = u16

source§

const NAME: &'static str = _

source§

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

source§

impl Copy for Service

source§

impl Eq for Service

source§

impl StructuralEq for Service

source§

impl StructuralPartialEq for Service

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere T: Clone,

§

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 Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.