pub struct SetupSynchronousConnection(/* private fields */);
Expand description
Setup Synchronous Connection command ๐
Adds a new or modifies an existing synchronous logical transport (SCO or eSCO) on a physical link.
Implementationsยง
Sourceยงimpl SetupSynchronousConnection
impl SetupSynchronousConnection
Sourcepub fn new(
handle: ConnHandle,
transmit_bandwidth: u32,
receive_bandwidth: u32,
max_latency: u16,
voice_setting: VoiceSetting,
retransmission_effort: RetransmissionEffort,
packet_type: SyncPacketType,
) -> Self
pub fn new( handle: ConnHandle, transmit_bandwidth: u32, receive_bandwidth: u32, max_latency: u16, voice_setting: VoiceSetting, retransmission_effort: RetransmissionEffort, packet_type: SyncPacketType, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for SetupSynchronousConnection
impl Clone for SetupSynchronousConnection
Sourceยงfn clone(&self) -> SetupSynchronousConnection
fn clone(&self) -> SetupSynchronousConnection
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 Cmd for SetupSynchronousConnection
impl Cmd for SetupSynchronousConnection
Sourceยงtype Params = SetupSynchronousConnectionParams
type Params = SetupSynchronousConnectionParams
Parameters type for this command.
Sourceยงfn params(&self) -> &SetupSynchronousConnectionParams
fn params(&self) -> &SetupSynchronousConnectionParams
Parameters expected for this command.
Sourceยงimpl Debug for SetupSynchronousConnection
impl Debug for SetupSynchronousConnection
Sourceยงimpl From<SetupSynchronousConnectionParams> for SetupSynchronousConnection
impl From<SetupSynchronousConnectionParams> for SetupSynchronousConnection
Sourceยงfn from(params: SetupSynchronousConnectionParams) -> Self
fn from(params: SetupSynchronousConnectionParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for SetupSynchronousConnection
impl Hash for SetupSynchronousConnection
Sourceยงimpl Ord for SetupSynchronousConnection
impl Ord for SetupSynchronousConnection
Sourceยงfn cmp(&self, other: &SetupSynchronousConnection) -> Ordering
fn cmp(&self, other: &SetupSynchronousConnection) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for SetupSynchronousConnection
impl PartialEq for SetupSynchronousConnection
Sourceยงfn eq(&self, other: &SetupSynchronousConnection) -> bool
fn eq(&self, other: &SetupSynchronousConnection) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Sourceยงimpl PartialOrd for SetupSynchronousConnection
impl PartialOrd for SetupSynchronousConnection
Sourceยงimpl SyncCmd for SetupSynchronousConnection
impl SyncCmd for SetupSynchronousConnection
Sourceยงtype Return = ()
type Return = ()
The type of the parameters for the
CommandComplete
eventSourceยงfn param_handle(&self)
fn param_handle(&self)
Handle parameter for this command.
Sourceยงfn return_handle(_data: &[u8]) -> Result<Self::Handle, FromHciBytesError>
fn return_handle(_data: &[u8]) -> Result<Self::Handle, FromHciBytesError>
Extracts the
Self::Handle
from the return parameters for commands that return a handle. Read moreSourceยงimpl WriteHci for SetupSynchronousConnection
impl WriteHci for SetupSynchronousConnection
impl Copy for SetupSynchronousConnection
impl Eq for SetupSynchronousConnection
impl StructuralPartialEq for SetupSynchronousConnection
Auto Trait Implementationsยง
impl Freeze for SetupSynchronousConnection
impl RefUnwindSafe for SetupSynchronousConnection
impl Send for SetupSynchronousConnection
impl Sync for SetupSynchronousConnection
impl Unpin for SetupSynchronousConnection
impl UnwindSafe for SetupSynchronousConnection
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> HostToControllerPacket for Twhere
T: Cmd,
impl<T> HostToControllerPacket for Twhere
T: Cmd,
Sourceยงconst KIND: PacketKind = const KIND: PacketKind = PacketKind::Cmd;
const KIND: PacketKind = const KIND: PacketKind = PacketKind::Cmd;
Packet kind associated with this HCI packet.