pub struct AcceptSynchronousConnectionRequest(/* private fields */);
Expand description
Accept Synchronous Connection Request command ๐
Accepts an incoming request for a synchronous connection.
Implementationsยง
Sourceยงimpl AcceptSynchronousConnectionRequest
impl AcceptSynchronousConnectionRequest
Sourcepub fn new(
bd_addr: BdAddr,
transmit_bandwidth: u32,
receive_bandwidth: u32,
max_latency: u16,
voice_setting: VoiceSetting,
retransmission_effort: RetransmissionEffort,
packet_type: SyncPacketType,
) -> Self
pub fn new( bd_addr: BdAddr, 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 AcceptSynchronousConnectionRequest
impl Clone for AcceptSynchronousConnectionRequest
Sourceยงfn clone(&self) -> AcceptSynchronousConnectionRequest
fn clone(&self) -> AcceptSynchronousConnectionRequest
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 AcceptSynchronousConnectionRequest
impl Cmd for AcceptSynchronousConnectionRequest
Sourceยงtype Params = AcceptSynchronousConnectionRequestParams
type Params = AcceptSynchronousConnectionRequestParams
Parameters type for this command.
Sourceยงfn params(&self) -> &AcceptSynchronousConnectionRequestParams
fn params(&self) -> &AcceptSynchronousConnectionRequestParams
Parameters expected for this command.
Sourceยงimpl From<AcceptSynchronousConnectionRequestParams> for AcceptSynchronousConnectionRequest
impl From<AcceptSynchronousConnectionRequestParams> for AcceptSynchronousConnectionRequest
Sourceยงfn from(params: AcceptSynchronousConnectionRequestParams) -> Self
fn from(params: AcceptSynchronousConnectionRequestParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Ord for AcceptSynchronousConnectionRequest
impl Ord for AcceptSynchronousConnectionRequest
Sourceยงfn cmp(&self, other: &AcceptSynchronousConnectionRequest) -> Ordering
fn cmp(&self, other: &AcceptSynchronousConnectionRequest) -> 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 AcceptSynchronousConnectionRequest
impl PartialEq for AcceptSynchronousConnectionRequest
Sourceยงfn eq(&self, other: &AcceptSynchronousConnectionRequest) -> bool
fn eq(&self, other: &AcceptSynchronousConnectionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Sourceยงimpl PartialOrd for AcceptSynchronousConnectionRequest
impl PartialOrd for AcceptSynchronousConnectionRequest
Sourceยงimpl SyncCmd for AcceptSynchronousConnectionRequest
impl SyncCmd for AcceptSynchronousConnectionRequest
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 AcceptSynchronousConnectionRequest
impl WriteHci for AcceptSynchronousConnectionRequest
impl Copy for AcceptSynchronousConnectionRequest
impl Eq for AcceptSynchronousConnectionRequest
impl StructuralPartialEq for AcceptSynchronousConnectionRequest
Auto Trait Implementationsยง
impl Freeze for AcceptSynchronousConnectionRequest
impl RefUnwindSafe for AcceptSynchronousConnectionRequest
impl Send for AcceptSynchronousConnectionRequest
impl Sync for AcceptSynchronousConnectionRequest
impl Unpin for AcceptSynchronousConnectionRequest
impl UnwindSafe for AcceptSynchronousConnectionRequest
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.