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§
Source§impl ServiceClassProfileIdentifier
impl ServiceClassProfileIdentifier
pub fn from_primitive(prim: u16) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u16) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u16
pub fn is_unknown(&self) -> bool
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<D: ResourceDialect> Decode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifier
impl<D: ResourceDialect> Decode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifier
Source§impl<D: ResourceDialect> Encode<ServiceClassProfileIdentifier, D> for ServiceClassProfileIdentifier
impl<D: ResourceDialect> Encode<ServiceClassProfileIdentifier, D> 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§impl TypeMarker for ServiceClassProfileIdentifier
impl TypeMarker for ServiceClassProfileIdentifier
Source§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
Source§type Borrowed<'a> = ServiceClassProfileIdentifier
type Borrowed<'a> = ServiceClassProfileIdentifier
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for ServiceClassProfileIdentifier
impl Eq for ServiceClassProfileIdentifier
impl StructuralPartialEq for ServiceClassProfileIdentifier
Auto Trait Implementations§
impl Freeze for ServiceClassProfileIdentifier
impl RefUnwindSafe for ServiceClassProfileIdentifier
impl Send for ServiceClassProfileIdentifier
impl Sync for ServiceClassProfileIdentifier
impl Unpin for ServiceClassProfileIdentifier
impl UnwindSafe for ServiceClassProfileIdentifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)