pub struct L2capChannelOffloadParameters {
pub acl_connection_handle: Option<u16>,
pub local_l2cap_channel_id: Option<u16>,
pub remote_l2cap_channel_id: Option<u16>,
pub local_l2cap_maximum_payload_size: Option<u16>,
pub remote_l2cap_maximum_payload_size: Option<u16>,
pub initial_tx_credits: Option<u16>,
/* private fields */
}Expand description
Set of low-level L2CAP channel parameters needed to transfer control of a channel to an offload processor.
Fields§
§acl_connection_handle: Option<u16>The HCI ACL connection handle to the peer over which this L2CAP channel exists. Required.
local_l2cap_channel_id: Option<u16>Required.
remote_l2cap_channel_id: Option<u16>Required.
local_l2cap_maximum_payload_size: Option<u16>The maximum payload size of a RX L2CAP PDU, not to be confused with the MTU of application layer payloads. Required.
remote_l2cap_maximum_payload_size: Option<u16>The maximum paylod size of a TX L2CAP PDU, not to be confused with the MTU of application layer payloads. Required.
initial_tx_credits: Option<u16>The initial number of TX flow control credits received from the peer. Optional. Not present for channels without flow control.
Trait Implementations§
Source§impl Clone for L2capChannelOffloadParameters
impl Clone for L2capChannelOffloadParameters
Source§fn clone(&self) -> L2capChannelOffloadParameters
fn clone(&self) -> L2capChannelOffloadParameters
Returns a duplicate 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<D: ResourceDialect> Decode<L2capChannelOffloadParameters, D> for L2capChannelOffloadParameters
impl<D: ResourceDialect> Decode<L2capChannelOffloadParameters, D> for L2capChannelOffloadParameters
Source§impl Default for L2capChannelOffloadParameters
impl Default for L2capChannelOffloadParameters
Source§fn default() -> L2capChannelOffloadParameters
fn default() -> L2capChannelOffloadParameters
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<L2capChannelOffloadParameters, D> for &L2capChannelOffloadParameters
impl<D: ResourceDialect> Encode<L2capChannelOffloadParameters, D> for &L2capChannelOffloadParameters
Source§impl PartialEq for L2capChannelOffloadParameters
impl PartialEq for L2capChannelOffloadParameters
Source§fn eq(&self, other: &L2capChannelOffloadParameters) -> bool
fn eq(&self, other: &L2capChannelOffloadParameters) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TypeMarker for L2capChannelOffloadParameters
impl TypeMarker for L2capChannelOffloadParameters
Source§type Owned = L2capChannelOffloadParameters
type Owned = L2capChannelOffloadParameters
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.Source§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 moreSource§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 L2capChannelOffloadParameters
impl ValueTypeMarker for L2capChannelOffloadParameters
Source§type Borrowed<'a> = &'a L2capChannelOffloadParameters
type Borrowed<'a> = &'a L2capChannelOffloadParameters
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 L2capChannelOffloadParameters
impl StructuralPartialEq for L2capChannelOffloadParameters
Auto Trait Implementations§
impl Freeze for L2capChannelOffloadParameters
impl RefUnwindSafe for L2capChannelOffloadParameters
impl Send for L2capChannelOffloadParameters
impl Sync for L2capChannelOffloadParameters
impl Unpin for L2capChannelOffloadParameters
impl UnsafeUnpin for L2capChannelOffloadParameters
impl UnwindSafe for L2capChannelOffloadParameters
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§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