pub struct ChannelParameters {
pub channel_mode: Option<ChannelMode>,
pub max_rx_sdu_size: Option<u16>,
pub security_requirements: Option<SecurityRequirements>,
pub flush_timeout: Option<i64>,
/* private fields */
}
Expand description
Used to specify preferred L2CAP channel parameters.
Fields§
§channel_mode: Option<ChannelMode>
Optional. If not provided, BASIC will be used.
max_rx_sdu_size: Option<u16>
Maximum SDU size this profile is capable of accepting. Must be >= 48. Optional. If not provided, the size will be determined by the Bluetooth system. No guarantees are given regarding the size selected.
security_requirements: Option<SecurityRequirements>
Minimum security requirements a link must have before this channel can be created. The requirements provided here will be attempted with the peer before the channel is established. If a peer cannot provide the requirements, the channel is closed. Optional. If not provided, then the only security property guaranteed is encryption.
flush_timeout: Option<i64>
The flush timeout indicates the maximum amount of time a data packet should be buffered in the controller before it is dropped. A flush timeout of infinity can be used to mark packets as flushable without any particular flush timeout. Range: 1ms - 1,279ms (or ∞). Rounded down. Optional. If not provided, no flush timeout and packets are not flushable.
Trait Implementations§
source§impl Clone for ChannelParameters
impl Clone for ChannelParameters
source§fn clone(&self) -> ChannelParameters
fn clone(&self) -> ChannelParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChannelParameters
impl Debug for ChannelParameters
source§impl Decode<ChannelParameters> for ChannelParameters
impl Decode<ChannelParameters> for ChannelParameters
source§impl Default for ChannelParameters
impl Default for ChannelParameters
source§fn default() -> ChannelParameters
fn default() -> ChannelParameters
source§impl Encode<ChannelParameters> for &ChannelParameters
impl Encode<ChannelParameters> for &ChannelParameters
source§impl PartialEq for ChannelParameters
impl PartialEq for ChannelParameters
source§fn eq(&self, other: &ChannelParameters) -> bool
fn eq(&self, other: &ChannelParameters) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for ChannelParameters
impl TypeMarker for ChannelParameters
§type Owned = ChannelParameters
type Owned = ChannelParameters
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§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.source§impl ValueTypeMarker for ChannelParameters
impl ValueTypeMarker for ChannelParameters
§type Borrowed<'a> = &'a ChannelParameters
type Borrowed<'a> = &'a ChannelParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more