pub struct ServiceDefinition {
pub service_class_uuids: Option<Vec<Uuid>>,
pub protocol_descriptor_list: Option<Vec<ProtocolDescriptor>>,
pub additional_protocol_descriptor_lists: Option<Vec<Vec<ProtocolDescriptor>>>,
pub profile_descriptors: Option<Vec<ProfileDescriptor>>,
pub information: Option<Vec<Information>>,
pub additional_attributes: Option<Vec<Attribute>>,
/* private fields */
}
Expand description
Definition for a service that is to be advertised as available via Bluetooth BR/EDR.
Fields§
§service_class_uuids: Option<Vec<Uuid>>
UUIDs of service classes that this service record conforms to. This field is required - all advertised services must have at least one service class.
protocol_descriptor_list: Option<Vec<ProtocolDescriptor>>
Specification for the primary protocol that can be used to gain access to this service, with their protocol-specific identifiers. This is ordered from lowest level (typically L2CAP) to highest.
additional_protocol_descriptor_lists: Option<Vec<Vec<ProtocolDescriptor>>>
Additional protocol descriptor lists, if the service requires more channels in addition to the main service.
profile_descriptors: Option<Vec<ProfileDescriptor>>
Bluetooth profiles that are supported by this service.
information: Option<Vec<Information>>
Human-readable service information, in one or more languages. The first set of information is considered the primary language.
additional_attributes: Option<Vec<Attribute>>
Additional attributes to be included in the Service Definition for specific services or profiles. All of these attributes should have an Attribute ID above 0x0200.
Trait Implementations§
Source§impl Clone for ServiceDefinition
impl Clone for ServiceDefinition
Source§fn clone(&self) -> ServiceDefinition
fn clone(&self) -> ServiceDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ServiceDefinition
impl Debug for ServiceDefinition
Source§impl<D: ResourceDialect> Decode<ServiceDefinition, D> for ServiceDefinition
impl<D: ResourceDialect> Decode<ServiceDefinition, D> for ServiceDefinition
Source§impl Default for ServiceDefinition
impl Default for ServiceDefinition
Source§fn default() -> ServiceDefinition
fn default() -> ServiceDefinition
Source§impl<D: ResourceDialect> Encode<ServiceDefinition, D> for &ServiceDefinition
impl<D: ResourceDialect> Encode<ServiceDefinition, D> for &ServiceDefinition
Source§impl PartialEq for ServiceDefinition
impl PartialEq for ServiceDefinition
Source§impl TypeMarker for ServiceDefinition
impl TypeMarker for ServiceDefinition
Source§type Owned = ServiceDefinition
type Owned = ServiceDefinition
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
.§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.Source§impl ValueTypeMarker for ServiceDefinition
impl ValueTypeMarker for ServiceDefinition
Source§type Borrowed<'a> = &'a ServiceDefinition
type Borrowed<'a> = &'a ServiceDefinition
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for ServiceDefinition
impl StructuralPartialEq for ServiceDefinition
Auto Trait Implementations§
impl Freeze for ServiceDefinition
impl RefUnwindSafe for ServiceDefinition
impl Send for ServiceDefinition
impl Sync for ServiceDefinition
impl Unpin for ServiceDefinition
impl UnwindSafe for ServiceDefinition
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
)