#[non_exhaustive]
#[repr(u16)]
pub enum ServiceClass {
Show 64 variants ServiceDiscoveryServer, BrowseGroupDescriptor, SerialPort, LanAccessUsingPpp, DialupNetworking, IrMcSync, ObexObjectPush, ObexFileTransfer, IrMcSyncCommand, Headset, CordlessTelephony, AudioSource, AudioSink, AvRemoteControlTarget, AvRemoteControl, AvRemoteControlController, Intercom, Fax, HeadsetAudioGateway, Wap, WapClient, Panu, Nap, Gn, DirectPrinting, ReferencePrinting, ImagingResponder, ImagingAutomaticArchive, ImagingReferencedObjects, Handsfree, HandsfreeAudioGateway, DirectPrintingReferenceObjectsService, ReflectedUi, PrintingStatus, HumanInterfaceDeviceService, HcrPrint, HcrScan, CommonIsdnAccess, SimAccess, PhonebookAccessPce, PhonebookAccessPse, HeadsetHs, MessageAccessServer, MessageNotificationServer, GnssServer, ThreeDDisplay, ThreeDGlasses, MpsScUuid, CtnAccessService, CtnNotificationService, PnPInformation, GenericNetworking, GenericFileTransfer, GenericAudio, GenericTelephony, UpnpService, UpnpIpService, EsdpUpnpIpPan, EsdpUpnpIpLap, EsdpUpnpL2Cap, VideoSource, VideoSink, HdpSource, HdpSink,
}
Expand description

SDP service class identifiers ([Assigned Numbers] Section 3.3).

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

ServiceDiscoveryServer

§

BrowseGroupDescriptor

§

SerialPort

§

LanAccessUsingPpp

§

DialupNetworking

§

IrMcSync

§

ObexObjectPush

§

ObexFileTransfer

§

IrMcSyncCommand

§

Headset

§

CordlessTelephony

§

AudioSource

§

AudioSink

§

AvRemoteControlTarget

§

AvRemoteControl

§

AvRemoteControlController

§

Intercom

§

Fax

§

HeadsetAudioGateway

§

Wap

§

WapClient

§

Panu

§

Nap

§

Gn

§

DirectPrinting

§

ReferencePrinting

§

ImagingResponder

§

ImagingAutomaticArchive

§

ImagingReferencedObjects

§

Handsfree

§

HandsfreeAudioGateway

§

DirectPrintingReferenceObjectsService

§

ReflectedUi

§

PrintingStatus

§

HumanInterfaceDeviceService

§

HcrPrint

§

HcrScan

§

CommonIsdnAccess

§

SimAccess

§

PhonebookAccessPce

§

PhonebookAccessPse

§

HeadsetHs

§

MessageAccessServer

§

MessageNotificationServer

§

GnssServer

§

ThreeDDisplay

§

ThreeDGlasses

§

MpsScUuid

§

CtnAccessService

§

CtnNotificationService

§

PnPInformation

§

GenericNetworking

§

GenericFileTransfer

§

GenericAudio

§

GenericTelephony

§

UpnpService

§

UpnpIpService

§

EsdpUpnpIpPan

§

EsdpUpnpIpLap

§

EsdpUpnpL2Cap

§

VideoSource

§

VideoSink

§

HdpSource

§

HdpSink

Implementations§

source§

impl ServiceClass

source

pub const SERVICE_DISCOVERY_SERVER: Uuid16 = _

source

pub const BROWSE_GROUP_DESCRIPTOR: Uuid16 = _

source

pub const SERIAL_PORT: Uuid16 = _

source

pub const LAN_ACCESS_USING_PPP: Uuid16 = _

source

pub const DIALUP_NETWORKING: Uuid16 = _

source

pub const IR_MC_SYNC: Uuid16 = _

source

pub const OBEX_OBJECT_PUSH: Uuid16 = _

source

pub const OBEX_FILE_TRANSFER: Uuid16 = _

source

pub const IR_MC_SYNC_COMMAND: Uuid16 = _

source

pub const HEADSET: Uuid16 = _

source

pub const CORDLESS_TELEPHONY: Uuid16 = _

source

pub const AUDIO_SOURCE: Uuid16 = _

source

pub const AUDIO_SINK: Uuid16 = _

source

pub const AV_REMOTE_CONTROL_TARGET: Uuid16 = _

source

pub const AV_REMOTE_CONTROL: Uuid16 = _

source

pub const AV_REMOTE_CONTROL_CONTROLLER: Uuid16 = _

source

pub const INTERCOM: Uuid16 = _

source

pub const FAX: Uuid16 = _

source

pub const HEADSET_AUDIO_GATEWAY: Uuid16 = _

source

pub const WAP: Uuid16 = _

source

pub const WAP_CLIENT: Uuid16 = _

source

pub const PANU: Uuid16 = _

source

pub const NAP: Uuid16 = _

source

pub const GN: Uuid16 = _

source

pub const DIRECT_PRINTING: Uuid16 = _

source

pub const REFERENCE_PRINTING: Uuid16 = _

source

pub const IMAGING_RESPONDER: Uuid16 = _

source

pub const IMAGING_AUTOMATIC_ARCHIVE: Uuid16 = _

source

pub const IMAGING_REFERENCED_OBJECTS: Uuid16 = _

source

pub const HANDSFREE: Uuid16 = _

source

pub const HANDSFREE_AUDIO_GATEWAY: Uuid16 = _

source

pub const DIRECT_PRINTING_REFERENCE_OBJECTS_SERVICE: Uuid16 = _

source

pub const REFLECTED_UI: Uuid16 = _

source

pub const PRINTING_STATUS: Uuid16 = _

source

pub const HUMAN_INTERFACE_DEVICE_SERVICE: Uuid16 = _

source

pub const HCR_PRINT: Uuid16 = _

source

pub const HCR_SCAN: Uuid16 = _

source

pub const COMMON_ISDN_ACCESS: Uuid16 = _

source

pub const SIM_ACCESS: Uuid16 = _

source

pub const PHONEBOOK_ACCESS_PCE: Uuid16 = _

source

pub const PHONEBOOK_ACCESS_PSE: Uuid16 = _

source

pub const HEADSET_HS: Uuid16 = _

source

pub const MESSAGE_ACCESS_SERVER: Uuid16 = _

source

pub const MESSAGE_NOTIFICATION_SERVER: Uuid16 = _

source

pub const GNSS_SERVER: Uuid16 = _

source

pub const THREE_D_DISPLAY: Uuid16 = _

source

pub const THREE_D_GLASSES: Uuid16 = _

source

pub const MPS_SC_UUID: Uuid16 = _

source

pub const CTN_ACCESS_SERVICE: Uuid16 = _

source

pub const CTN_NOTIFICATION_SERVICE: Uuid16 = _

source

pub const PN_P_INFORMATION: Uuid16 = _

source

pub const GENERIC_NETWORKING: Uuid16 = _

source

pub const GENERIC_FILE_TRANSFER: Uuid16 = _

source

pub const GENERIC_AUDIO: Uuid16 = _

source

pub const GENERIC_TELEPHONY: Uuid16 = _

source

pub const UPNP_SERVICE: Uuid16 = _

source

pub const UPNP_IP_SERVICE: Uuid16 = _

source

pub const ESDP_UPNP_IP_PAN: Uuid16 = _

source

pub const ESDP_UPNP_IP_LAP: Uuid16 = _

source

pub const ESDP_UPNP_L2_CAP: Uuid16 = _

source

pub const VIDEO_SOURCE: Uuid16 = _

source

pub const VIDEO_SINK: Uuid16 = _

source

pub const HDP_SOURCE: Uuid16 = _

source

pub const HDP_SINK: 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.

Trait Implementations§

source§

impl Clone for ServiceClass

source§

fn clone(&self) -> ServiceClass

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 ServiceClass

source§

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

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

impl Display for ServiceClass

source§

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

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

impl From<ServiceClass> for Uuid

source§

fn from(v: ServiceClass) -> Self

Converts to this type from the input type.
source§

impl From<ServiceClass> for Uuid16

source§

fn from(v: ServiceClass) -> Self

Converts to this type from the input type.
source§

impl From<ServiceClass> for u16

source§

fn from(enum_value: ServiceClass) -> Self

Converts to this type from the input type.
source§

impl Ord for ServiceClass

source§

fn cmp(&self, other: &ServiceClass) -> 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<ServiceClass> for ServiceClass

source§

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

source§

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

source§

fn eq(&self, rhs: &ServiceClass) -> 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 ServiceClass

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 ServiceClass

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

source§

fn partial_cmp(&self, other: &ServiceClass) -> 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 ServiceClass

§

type Error = TryFromPrimitiveError<ServiceClass>

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 ServiceClass

§

type Error = TryFromPrimitiveError<ServiceClass>

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 ServiceClass

§

type Primitive = u16

source§

const NAME: &'static str = _

source§

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

source§

impl Copy for ServiceClass

source§

impl Eq for ServiceClass

source§

impl StructuralEq for ServiceClass

source§

impl StructuralPartialEq for ServiceClass

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.