pub struct CreateConnection(/* private fields */);
Expand description
Create Connection command ๐
Initiates a connection to a remote Bluetooth device.
Implementationsยง
Sourceยงimpl CreateConnection
impl CreateConnection
Sourcepub fn new(
bd_addr: BdAddr,
packet_type: PacketType,
page_scan_repetition_mode: PageScanRepetitionMode,
reserved: u8,
clock_offset: ClockOffset,
allow_role_switch: AllowRoleSwitch,
) -> Self
pub fn new( bd_addr: BdAddr, packet_type: PacketType, page_scan_repetition_mode: PageScanRepetitionMode, reserved: u8, clock_offset: ClockOffset, allow_role_switch: AllowRoleSwitch, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for CreateConnection
impl Clone for CreateConnection
Sourceยงfn clone(&self) -> CreateConnection
fn clone(&self) -> CreateConnection
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 CreateConnection
impl Cmd for CreateConnection
Sourceยงtype Params = CreateConnectionParams
type Params = CreateConnectionParams
Parameters type for this command.
Sourceยงfn params(&self) -> &CreateConnectionParams
fn params(&self) -> &CreateConnectionParams
Parameters expected for this command.
Sourceยงimpl Debug for CreateConnection
impl Debug for CreateConnection
Sourceยงimpl From<CreateConnectionParams> for CreateConnection
impl From<CreateConnectionParams> for CreateConnection
Sourceยงfn from(params: CreateConnectionParams) -> Self
fn from(params: CreateConnectionParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for CreateConnection
impl Hash for CreateConnection
Sourceยงimpl Ord for CreateConnection
impl Ord for CreateConnection
Sourceยงfn cmp(&self, other: &CreateConnection) -> Ordering
fn cmp(&self, other: &CreateConnection) -> 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 CreateConnection
impl PartialEq for CreateConnection
Sourceยงimpl PartialOrd for CreateConnection
impl PartialOrd for CreateConnection
Sourceยงimpl SyncCmd for CreateConnection
impl SyncCmd for CreateConnection
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 CreateConnection
impl WriteHci for CreateConnection
impl Copy for CreateConnection
impl Eq for CreateConnection
impl StructuralPartialEq for CreateConnection
Auto Trait Implementationsยง
impl Freeze for CreateConnection
impl RefUnwindSafe for CreateConnection
impl Send for CreateConnection
impl Sync for CreateConnection
impl Unpin for CreateConnection
impl UnwindSafe for CreateConnection
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.