Enum ServiceClassProfileIdentifier
pub enum ServiceClassProfileIdentifier {
Show 39 variants
SerialPort,
DialupNetworking,
ObexObjectPush,
OpexFileTransfer,
Headset,
HeadsetAudioGateway,
HeadsetHs,
AudioSource,
AudioSink,
AdvancedAudioDistribution,
AvRemoteControlTarget,
AvRemoteControl,
AvRemoteControlController,
Panu,
Nap,
Gn,
Handsfree,
HandsfreeAudioGateway,
HumanInterfaceDevice,
SimAccess,
PhonebookPce,
PhonebookPse,
Phonebook,
MessageAccessServer,
MessageNotificationServer,
MessageAccessProfile,
MpsProfile,
MpsClass,
PnpInformation,
GenericNetworking,
GenericFileTransfer,
GenericAudio,
GenericTelephony,
VideoSource,
VideoSink,
VideoDistribution,
Hdp,
HdpSource,
HdpSink,
// some variants omitted
}
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
Serial Port Profile (SPP)
DialupNetworking
Dial-up Networking Profile (DUN)
ObexObjectPush
Object Push Profile (OPP)
OpexFileTransfer
File Transfer Profile (FTP)
Headset
Headset Profile (HSP)
HeadsetAudioGateway
HeadsetHs
AudioSource
Advanced Audio Distribution Profile (A2DP)
AudioSink
AdvancedAudioDistribution
AvRemoteControlTarget
Audio/Video Remote Control Profile (AVRCP)
AvRemoteControl
AvRemoteControlController
Panu
Personal Area Networking (PAN)
Nap
Gn
Handsfree
Hands-Free Profile (HFP)
HandsfreeAudioGateway
HumanInterfaceDevice
Human Interface Device Profile (HID)
SimAccess
Sim Access Profile (SAP)
PhonebookPce
Phonebook Access Profile (PBAP)
PhonebookPse
Phonebook
MessageAccessServer
Message Access Profile (MAP)
MessageNotificationServer
MessageAccessProfile
MpsProfile
Multi-Profile Specification (MPS)
MpsClass
PnpInformation
Device Identification Profile (DI)
GenericNetworking
Generic Networking
GenericFileTransfer
Generic File Transfer
GenericAudio
Generic Audio
GenericTelephony
Generic Telephony
VideoSource
Video Distribution Profile (VDP)
VideoSink
VideoDistribution
Hdp
Health Device Profile (HDP)
HdpSource
HdpSink
Implementations§
§impl ServiceClassProfileIdentifier
impl ServiceClassProfileIdentifier
pub fn from_primitive(prim: u16) -> Option<ServiceClassProfileIdentifier>
pub fn from_primitive_allow_unknown(prim: u16) -> ServiceClassProfileIdentifier
pub fn unknown() -> ServiceClassProfileIdentifier
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for ServiceClassProfileIdentifier
impl Clone for ServiceClassProfileIdentifier
§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 more§impl Debug for ServiceClassProfileIdentifier
impl Debug for ServiceClassProfileIdentifier
§impl<D> Decode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifierwhere
D: ResourceDialect,
impl<D> Decode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifierwhere
D: ResourceDialect,
§fn new_empty() -> ServiceClassProfileIdentifier
fn new_empty() -> ServiceClassProfileIdentifier
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifierwhere
D: ResourceDialect,
impl<D> Encode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifierwhere
D: ResourceDialect,
§impl Hash for ServiceClassProfileIdentifier
impl Hash for ServiceClassProfileIdentifier
§impl Ord for ServiceClassProfileIdentifier
impl Ord for ServiceClassProfileIdentifier
§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,
§impl PartialEq for ServiceClassProfileIdentifier
impl PartialEq for ServiceClassProfileIdentifier
§impl PartialOrd for ServiceClassProfileIdentifier
impl PartialOrd for ServiceClassProfileIdentifier
§impl TypeMarker for ServiceClassProfileIdentifier
impl TypeMarker for ServiceClassProfileIdentifier
§type Owned = ServiceClassProfileIdentifier
type Owned = ServiceClassProfileIdentifier
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§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 more§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.§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§fn borrow(
value: &<ServiceClassProfileIdentifier as TypeMarker>::Owned,
) -> <ServiceClassProfileIdentifier as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ServiceClassProfileIdentifier as TypeMarker>::Owned, ) -> <ServiceClassProfileIdentifier as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.