ServiceClass

Enum ServiceClass 

Source
#[non_exhaustive]
#[repr(u16)]
pub enum ServiceClass {
Show 64 variants ServiceDiscoveryServer = 4_096, BrowseGroupDescriptor = 4_097, SerialPort = 4_353, LanAccessUsingPpp = 4_354, DialupNetworking = 4_355, IrMcSync = 4_356, ObexObjectPush = 4_357, ObexFileTransfer = 4_358, IrMcSyncCommand = 4_359, Headset = 4_360, CordlessTelephony = 4_361, AudioSource = 4_362, AudioSink = 4_363, AvRemoteControlTarget = 4_364, AvRemoteControl = 4_366, AvRemoteControlController = 4_367, Intercom = 4_368, Fax = 4_369, HeadsetAudioGateway = 4_370, Wap = 4_371, WapClient = 4_372, Panu = 4_373, Nap = 4_374, Gn = 4_375, DirectPrinting = 4_376, ReferencePrinting = 4_377, ImagingResponder = 4_379, ImagingAutomaticArchive = 4_380, ImagingReferencedObjects = 4_381, Handsfree = 4_382, HandsfreeAudioGateway = 4_383, DirectPrintingReferenceObjectsService = 4_384, ReflectedUi = 4_385, PrintingStatus = 4_387, HumanInterfaceDeviceService = 4_388, HcrPrint = 4_390, HcrScan = 4_391, CommonIsdnAccess = 4_392, SimAccess = 4_397, PhonebookAccessPce = 4_398, PhonebookAccessPse = 4_399, HeadsetHs = 4_401, MessageAccessServer = 4_402, MessageNotificationServer = 4_403, GnssServer = 4_406, ThreeDDisplay = 4_407, ThreeDGlasses = 4_408, MpsScUuid = 4_411, CtnAccessService = 4_412, CtnNotificationService = 4_413, PnPInformation = 4_608, GenericNetworking = 4_609, GenericFileTransfer = 4_610, GenericAudio = 4_611, GenericTelephony = 4_612, UpnpService = 4_613, UpnpIpService = 4_614, EsdpUpnpIpPan = 4_864, EsdpUpnpIpLap = 4_865, EsdpUpnpL2Cap = 4_866, VideoSource = 4_867, VideoSink = 4_868, HdpSource = 5_121, HdpSink = 5_122,
}
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 = 4_096

§

BrowseGroupDescriptor = 4_097

§

SerialPort = 4_353

§

LanAccessUsingPpp = 4_354

§

DialupNetworking = 4_355

§

IrMcSync = 4_356

§

ObexObjectPush = 4_357

§

ObexFileTransfer = 4_358

§

IrMcSyncCommand = 4_359

§

Headset = 4_360

§

CordlessTelephony = 4_361

§

AudioSource = 4_362

§

AudioSink = 4_363

§

AvRemoteControlTarget = 4_364

§

AvRemoteControl = 4_366

§

AvRemoteControlController = 4_367

§

Intercom = 4_368

§

Fax = 4_369

§

HeadsetAudioGateway = 4_370

§

Wap = 4_371

§

WapClient = 4_372

§

Panu = 4_373

§

Nap = 4_374

§

Gn = 4_375

§

DirectPrinting = 4_376

§

ReferencePrinting = 4_377

§

ImagingResponder = 4_379

§

ImagingAutomaticArchive = 4_380

§

ImagingReferencedObjects = 4_381

§

Handsfree = 4_382

§

HandsfreeAudioGateway = 4_383

§

DirectPrintingReferenceObjectsService = 4_384

§

ReflectedUi = 4_385

§

PrintingStatus = 4_387

§

HumanInterfaceDeviceService = 4_388

§

HcrPrint = 4_390

§

HcrScan = 4_391

§

CommonIsdnAccess = 4_392

§

SimAccess = 4_397

§

PhonebookAccessPce = 4_398

§

PhonebookAccessPse = 4_399

§

HeadsetHs = 4_401

§

MessageAccessServer = 4_402

§

MessageNotificationServer = 4_403

§

GnssServer = 4_406

§

ThreeDDisplay = 4_407

§

ThreeDGlasses = 4_408

§

MpsScUuid = 4_411

§

CtnAccessService = 4_412

§

CtnNotificationService = 4_413

§

PnPInformation = 4_608

§

GenericNetworking = 4_609

§

GenericFileTransfer = 4_610

§

GenericAudio = 4_611

§

GenericTelephony = 4_612

§

UpnpService = 4_613

§

UpnpIpService = 4_614

§

EsdpUpnpIpPan = 4_864

§

EsdpUpnpIpLap = 4_865

§

EsdpUpnpL2Cap = 4_866

§

VideoSource = 4_867

§

VideoSink = 4_868

§

HdpSource = 5_121

§

HdpSink = 5_122

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

Source§

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

Source§

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

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 ServiceClass

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 ServiceClass

Source§

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

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 ServiceClass

Source§

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

Source§

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

Source§

const NAME: &'static str = "ServiceClass"

Source§

type Primitive = u16

Source§

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

Source§

impl Copy for ServiceClass

Source§

impl Eq for ServiceClass

Source§

impl StructuralPartialEq for ServiceClass

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.