Struct ServiceDefinition
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§
§impl Clone for ServiceDefinition
impl Clone for ServiceDefinition
§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 more§impl Debug for ServiceDefinition
impl Debug for ServiceDefinition
§impl<D> Decode<ServiceDefinition, D> for ServiceDefinitionwhere
D: ResourceDialect,
impl<D> Decode<ServiceDefinition, D> for ServiceDefinitionwhere
D: ResourceDialect,
§fn new_empty() -> ServiceDefinition
fn new_empty() -> ServiceDefinition
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for ServiceDefinition
impl Default for ServiceDefinition
§fn default() -> ServiceDefinition
fn default() -> ServiceDefinition
§impl<D> Encode<ServiceDefinition, D> for &ServiceDefinitionwhere
D: ResourceDialect,
impl<D> Encode<ServiceDefinition, D> for &ServiceDefinitionwhere
D: ResourceDialect,
§impl PartialEq for ServiceDefinition
impl PartialEq for ServiceDefinition
§impl TypeMarker for ServiceDefinition
impl TypeMarker for ServiceDefinition
§type Owned = ServiceDefinition
type Owned = ServiceDefinition
§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 ServiceDefinition
impl ValueTypeMarker for ServiceDefinition
§type Borrowed<'a> = &'a ServiceDefinition
type Borrowed<'a> = &'a ServiceDefinition
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ServiceDefinition as TypeMarker>::Owned,
) -> <ServiceDefinition as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ServiceDefinition as TypeMarker>::Owned, ) -> <ServiceDefinition as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.