pub struct BredrPeerParameters {
pub address: Option<Address>,
pub connectable: Option<bool>,
pub device_class: Option<DeviceClass>,
pub service_definition: Option<Vec<ServiceDefinition>>,
/* private fields */
}
Expand description
Parameters used to emulate a peer’s behavior over the BR/EDR transport.
Fields§
§address: Option<Address>
The BD_ADDR of the peer. This field is mandatory.
connectable: Option<bool>
When present and true, the peer will accept connection requests. The peer will ignore connection requests if not connectable.
device_class: Option<DeviceClass>
The device class reported in the inquiry response for this peer during device discovery.
service_definition: Option<Vec<ServiceDefinition>>
Trait Implementations§
source§impl Clone for BredrPeerParameters
impl Clone for BredrPeerParameters
source§fn clone(&self) -> BredrPeerParameters
fn clone(&self) -> BredrPeerParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BredrPeerParameters
impl Debug for BredrPeerParameters
source§impl Decode<BredrPeerParameters> for BredrPeerParameters
impl Decode<BredrPeerParameters> for BredrPeerParameters
source§impl Default for BredrPeerParameters
impl Default for BredrPeerParameters
source§fn default() -> BredrPeerParameters
fn default() -> BredrPeerParameters
Returns the “default value” for a type. Read more
source§impl Encode<BredrPeerParameters> for &BredrPeerParameters
impl Encode<BredrPeerParameters> for &BredrPeerParameters
source§impl PartialEq for BredrPeerParameters
impl PartialEq for BredrPeerParameters
source§fn eq(&self, other: &BredrPeerParameters) -> bool
fn eq(&self, other: &BredrPeerParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for BredrPeerParameters
impl TypeMarker for BredrPeerParameters
§type Owned = BredrPeerParameters
type Owned = BredrPeerParameters
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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 BredrPeerParameters
impl ValueTypeMarker for BredrPeerParameters
§type Borrowed<'a> = &'a BredrPeerParameters
type Borrowed<'a> = &'a BredrPeerParameters
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for BredrPeerParameters
impl StructuralPartialEq for BredrPeerParameters
Auto Trait Implementations§
impl RefUnwindSafe for BredrPeerParameters
impl Send for BredrPeerParameters
impl Sync for BredrPeerParameters
impl Unpin for BredrPeerParameters
impl UnwindSafe for BredrPeerParameters
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Mutably borrows from an owned value. Read more