#[repr(u16)]pub enum ServiceClassProfileIdentifier {
Show 39 variants
SerialPort = 4_353,
DialupNetworking = 4_355,
ObexObjectPush = 4_357,
OpexFileTransfer = 4_358,
Headset = 4_360,
HeadsetAudioGateway = 4_370,
HeadsetHs = 4_401,
AudioSource = 4_362,
AudioSink = 4_363,
AdvancedAudioDistribution = 4_365,
AvRemoteControlTarget = 4_364,
AvRemoteControl = 4_366,
AvRemoteControlController = 4_367,
Panu = 4_373,
Nap = 4_374,
Gn = 4_375,
Handsfree = 4_382,
HandsfreeAudioGateway = 4_383,
HumanInterfaceDevice = 4_388,
SimAccess = 4_397,
PhonebookPce = 4_398,
PhonebookPse = 4_399,
Phonebook = 4_400,
MessageAccessServer = 4_402,
MessageNotificationServer = 4_403,
MessageAccessProfile = 4_404,
MpsProfile = 4_410,
MpsClass = 4_411,
PnpInformation = 4_608,
GenericNetworking = 4_609,
GenericFileTransfer = 4_610,
GenericAudio = 4_611,
GenericTelephony = 4_612,
VideoSource = 4_867,
VideoSink = 4_868,
VideoDistribution = 4_869,
Hdp = 5_120,
HdpSource = 5_121,
HdpSink = 5_122,
}
Expand description
Identifiers that are valid for Bluetooth Classes / Profiles. We intentionally omit classes and profile IDs that are unsupported, deprecated, or reserved for use by Fuchsia Bluetooth. These numbers are sourced from the Bluetooth Assigned Numbers for SDP. https://www.bluetooth.com/specifications/assigned-numbers/service-discovery
Variants§
SerialPort = 4_353
Serial Port Profile (SPP)
DialupNetworking = 4_355
Dial-up Networking Profile (DUN)
ObexObjectPush = 4_357
Object Push Profile (OPP)
OpexFileTransfer = 4_358
File Transfer Profile (FTP)
Headset = 4_360
Headset Profile (HSP)
HeadsetAudioGateway = 4_370
HeadsetHs = 4_401
AudioSource = 4_362
Advanced Audio Distribution Profile (A2DP)
AudioSink = 4_363
AdvancedAudioDistribution = 4_365
AvRemoteControlTarget = 4_364
Audio/Video Remote Control Profile (AVRCP)
AvRemoteControl = 4_366
AvRemoteControlController = 4_367
Panu = 4_373
Personal Area Networking (PAN)
Nap = 4_374
Gn = 4_375
Handsfree = 4_382
Hands-Free Profile (HFP)
HandsfreeAudioGateway = 4_383
HumanInterfaceDevice = 4_388
Human Interface Device Profile (HID)
SimAccess = 4_397
Sim Access Profile (SAP)
PhonebookPce = 4_398
Phonebook Access Profile (PBAP)
PhonebookPse = 4_399
Phonebook = 4_400
MessageAccessServer = 4_402
Message Access Profile (MAP)
MessageNotificationServer = 4_403
MessageAccessProfile = 4_404
MpsProfile = 4_410
Multi-Profile Specification (MPS)
MpsClass = 4_411
PnpInformation = 4_608
Device Identification Profile (DI)
GenericNetworking = 4_609
Generic Networking
GenericFileTransfer = 4_610
Generic File Transfer
GenericAudio = 4_611
Generic Audio
GenericTelephony = 4_612
Generic Telephony
VideoSource = 4_867
Video Distribution Profile (VDP)
VideoSink = 4_868
VideoDistribution = 4_869
Hdp = 5_120
Health Device Profile (HDP)
HdpSource = 5_121
HdpSink = 5_122
Implementations§
source§impl ServiceClassProfileIdentifier
impl ServiceClassProfileIdentifier
pub fn from_primitive(prim: u16) -> Option<Self>
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
source§impl Clone for ServiceClassProfileIdentifier
impl Clone for ServiceClassProfileIdentifier
source§fn clone(&self) -> ServiceClassProfileIdentifier
fn clone(&self) -> ServiceClassProfileIdentifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Decode<ServiceClassProfileIdentifier> for ServiceClassProfileIdentifier
impl Decode<ServiceClassProfileIdentifier> for ServiceClassProfileIdentifier
source§impl Encode<ServiceClassProfileIdentifier> for ServiceClassProfileIdentifier
impl Encode<ServiceClassProfileIdentifier> for ServiceClassProfileIdentifier
source§impl Hash for ServiceClassProfileIdentifier
impl Hash for ServiceClassProfileIdentifier
source§impl Ord for ServiceClassProfileIdentifier
impl Ord for ServiceClassProfileIdentifier
source§fn cmp(&self, other: &ServiceClassProfileIdentifier) -> Ordering
fn cmp(&self, other: &ServiceClassProfileIdentifier) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ServiceClassProfileIdentifier
impl PartialEq for ServiceClassProfileIdentifier
source§fn eq(&self, other: &ServiceClassProfileIdentifier) -> bool
fn eq(&self, other: &ServiceClassProfileIdentifier) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ServiceClassProfileIdentifier
impl PartialOrd for ServiceClassProfileIdentifier
source§fn partial_cmp(&self, other: &ServiceClassProfileIdentifier) -> Option<Ordering>
fn partial_cmp(&self, other: &ServiceClassProfileIdentifier) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for ServiceClassProfileIdentifier
impl TypeMarker for ServiceClassProfileIdentifier
§type Owned = ServiceClassProfileIdentifier
type Owned = ServiceClassProfileIdentifier
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for ServiceClassProfileIdentifier
impl ValueTypeMarker for ServiceClassProfileIdentifier
§type Borrowed<'a> = ServiceClassProfileIdentifier
type Borrowed<'a> = ServiceClassProfileIdentifier
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more