pub struct ScoConnectionParameters {
pub parameter_set: Option<HfpParameterSet>,
pub air_coding_format: Option<AssignedCodingFormat>,
pub air_frame_size: Option<u16>,
pub io_bandwidth: Option<u32>,
pub io_coding_format: Option<AssignedCodingFormat>,
pub io_frame_size: Option<u16>,
pub io_pcm_data_format: Option<SampleFormat>,
pub io_pcm_sample_payload_msb_position: Option<u8>,
pub path: Option<DataPath>,
pub max_tx_data_size: Option<u16>,
/* private fields */
}
Fields§
§parameter_set: Option<HfpParameterSet>
Set of SCO parameters from the Hands-Free Profile specification. Required.
air_coding_format: Option<AssignedCodingFormat>
The over-the-air coding format used for transmitted and received data. Required.
air_frame_size: Option<u16>
Frame size produced by the codec in the context of over-the-air coding. Required.
io_bandwidth: Option<u32>
Host-controller data rate in bytes/second. Required.
io_coding_format: Option<AssignedCodingFormat>
The coding format used over the transport. Required.
io_frame_size: Option<u16>
The number of bits in each sample/frame of data. Required.
io_pcm_data_format: Option<SampleFormat>
The data format over the transport for linear samples. Ignored for non-linear coding formats. Optional. SIGNED indicates 2’s complement sign encoding. FLOAT is not supported.
io_pcm_sample_payload_msb_position: Option<u8>
For linear samples, indicates how many bit positions the MSB of the sample is away from the MSB of the data. Ignored for non-linear coding formats. Optional. Default: 0.
path: Option<DataPath>
The data transport. Required.
max_tx_data_size: Option<u16>
Indicates the maximum data buffer size that may be sent. Optional. Only present after a connection has successfully been connected. Ignored when requesting a connection.
Trait Implementations§
Source§impl Clone for ScoConnectionParameters
impl Clone for ScoConnectionParameters
Source§fn clone(&self) -> ScoConnectionParameters
fn clone(&self) -> ScoConnectionParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ScoConnectionParameters
impl Debug for ScoConnectionParameters
Source§impl<D: ResourceDialect> Decode<ScoConnectionParameters, D> for ScoConnectionParameters
impl<D: ResourceDialect> Decode<ScoConnectionParameters, D> for ScoConnectionParameters
Source§impl Default for ScoConnectionParameters
impl Default for ScoConnectionParameters
Source§fn default() -> ScoConnectionParameters
fn default() -> ScoConnectionParameters
Source§impl<D: ResourceDialect> Encode<ScoConnectionParameters, D> for &ScoConnectionParameters
impl<D: ResourceDialect> Encode<ScoConnectionParameters, D> for &ScoConnectionParameters
Source§impl PartialEq for ScoConnectionParameters
impl PartialEq for ScoConnectionParameters
Source§impl TypeMarker for ScoConnectionParameters
impl TypeMarker for ScoConnectionParameters
Source§type Owned = ScoConnectionParameters
type Owned = ScoConnectionParameters
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 ScoConnectionParameters
impl ValueTypeMarker for ScoConnectionParameters
Source§type Borrowed<'a> = &'a ScoConnectionParameters
type Borrowed<'a> = &'a ScoConnectionParameters
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more