pub struct PeerParameters {
pub address: Option<Address>,
pub connectable: Option<bool>,
pub channel: Option<ServerEnd<PeerMarker>>,
/* private fields */
}
Expand description
Parameters used to emulate a peer’s behavior over the BR/EDR/Low Energy transport.
Fields§
§address: Option<Address>
The public BR/EDR BD_ADDR address of a peer. This field is mandatory.
connectable: Option<bool>
When present and true, the peer will send connectable advertisements and accept connection requests. The peer will ignore connection requests if not connectable.
channel: Option<ServerEnd<PeerMarker>>
Server end of channel bound to Peer protocol.
Trait Implementations§
Source§impl Debug for PeerParameters
impl Debug for PeerParameters
Source§impl Decode<PeerParameters, DefaultFuchsiaResourceDialect> for PeerParameters
impl Decode<PeerParameters, DefaultFuchsiaResourceDialect> for PeerParameters
Source§impl Default for PeerParameters
impl Default for PeerParameters
Source§fn default() -> PeerParameters
fn default() -> PeerParameters
Returns the “default value” for a type. Read more
Source§impl Encode<PeerParameters, DefaultFuchsiaResourceDialect> for &mut PeerParameters
impl Encode<PeerParameters, DefaultFuchsiaResourceDialect> for &mut PeerParameters
Source§impl PartialEq for PeerParameters
impl PartialEq for PeerParameters
Source§impl ResourceTypeMarker for PeerParameters
impl ResourceTypeMarker for PeerParameters
Source§type Borrowed<'a> = &'a mut PeerParameters
type Borrowed<'a> = &'a mut PeerParameters
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for PeerParameters
impl TypeMarker for PeerParameters
Source§type Owned = PeerParameters
type Owned = PeerParameters
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.impl Standalone<DefaultFuchsiaResourceDialect> for PeerParameters
impl StructuralPartialEq for PeerParameters
Auto Trait Implementations§
impl Freeze for PeerParameters
impl RefUnwindSafe for PeerParameters
impl Send for PeerParameters
impl Sync for PeerParameters
impl Unpin for PeerParameters
impl UnwindSafe for PeerParameters
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
Mutably borrows from an owned value. Read more