Type Alias ChannelParameters

Source
pub type ChannelParameters = ChannelParameters;

Aliased Type§

struct ChannelParameters {
    pub channel_mode: Option<ChannelMode>,
    pub max_rx_packet_size: Option<u16>,
    pub security_requirements: Option<SecurityRequirements>,
    pub flush_timeout: Option<i64>,
}

Fields§

§channel_mode: Option<ChannelMode>

Optional. For BR/EDR: If not provided, BASIC will be used. For LE: If not provided, LE_CREDIT_BASED_FLOW_CONTROL will be used.

§max_rx_packet_size: Option<u16>

Maximum packet 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>

For BR/EDR: 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.

For LE: Unused, must not be present.

§flush_timeout: Option<i64>

For BR/EDR: 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.

For LE: Unused, must not be present.

Trait Implementations

§

impl Clone for ChannelParameters

§

fn clone(&self) -> ChannelParameters

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ChannelParameters

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<D> Decode<ChannelParameters, D> for ChannelParameters
where D: ResourceDialect,

§

fn new_empty() -> ChannelParameters

Creates a valid instance of Self. The specific value does not matter, since it will be overwritten by decode.
§

unsafe fn decode( &mut self, decoder: &mut Decoder<'_, D>, offset: usize, depth: Depth, ) -> Result<(), Error>

Decodes an object of type T from the decoder’s buffers into self. Read more
§

impl Default for ChannelParameters

§

fn default() -> ChannelParameters

Returns the “default value” for a type. Read more
§

impl PartialEq for ChannelParameters

§

fn eq(&self, other: &ChannelParameters) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl TypeMarker for ChannelParameters

§

type Owned = ChannelParameters

The owned Rust type which this FIDL type decodes into.
§

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.
§

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

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

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 ValueTypeMarker for ChannelParameters

§

type Borrowed<'a> = &'a ChannelParameters

The Rust type to use for encoding. This is a particular Encode<Self> type cheaply obtainable from &Self::Owned. There are three cases: Read more
§

fn borrow( value: &<ChannelParameters as TypeMarker>::Owned, ) -> <ChannelParameters as ValueTypeMarker>::Borrowed<'_>

Cheaply converts from &Self::Owned to Self::Borrowed.
§

impl Persistable for ChannelParameters

§

impl StructuralPartialEq for ChannelParameters