Struct fidl_fuchsia_bluetooth_bredr::Channel
source · pub struct Channel {
pub socket: Option<Socket>,
pub channel_mode: Option<ChannelMode>,
pub max_tx_sdu_size: Option<u16>,
pub ext_direction: Option<ClientEnd<AudioDirectionExtMarker>>,
pub flush_timeout: Option<i64>,
pub ext_l2cap: Option<ClientEnd<L2capParametersExtMarker>>,
pub ext_audio_offload: Option<ClientEnd<AudioOffloadExtMarker>>,
pub connection: Option<ClientEnd<ChannelMarker>>,
/* private fields */
}
Expand description
A channel opened to a peer.
Fields§
§socket: Option<Socket>
Deprecated. Socket interface for sending/receiving SDUs on the channel. The channel will be closed if both this socket and the Connection are closed. Always present.
channel_mode: Option<ChannelMode>
Channel mode accepted by the peer. Always present.
max_tx_sdu_size: Option<u16>
Maximum SDU size the peer is capable of accepting. Always present.
ext_direction: Option<ClientEnd<AudioDirectionExtMarker>>
Audio Direction priority extension. See AudioDirectionExt
.
Present only if supported.
flush_timeout: Option<i64>
§ext_l2cap: Option<ClientEnd<L2capParametersExtMarker>>
L2CAP parameter extension. See L2capParametersExt
.
Always present for L2CAP Channels, never present for other Channels.
ext_audio_offload: Option<ClientEnd<AudioOffloadExtMarker>>
Audio offload extension. See AudioOffloadExt
.
Present only if supported.
connection: Option<ClientEnd<ChannelMarker>>
Protocol for sending/receiving SDUs on the channel.
If present, closing this and socket
will close the channel.
Trait Implementations§
source§impl Decode<Channel> for Channel
impl Decode<Channel> for Channel
source§impl PartialEq for Channel
impl PartialEq for Channel
source§impl ResourceTypeMarker for Channel
impl ResourceTypeMarker for Channel
§type Borrowed<'a> = &'a mut Channel
type Borrowed<'a> = &'a mut Channel
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 Channel
impl TypeMarker for Channel
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 for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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