pub struct LeCreateConn(/* private fields */);
Expand description
LE Create Connection command ๐
Implementationsยง
Sourceยงimpl LeCreateConn
impl LeCreateConn
Sourcepub fn new(
le_scan_interval: Duration<10_000>,
le_scan_window: Duration<10_000>,
use_filter_accept_list: bool,
peer_addr_kind: AddrKind,
peer_addr: BdAddr,
own_addr_kind: AddrKind,
conn_interval_min: Duration<1_250>,
conn_interval_max: Duration<1_250>,
max_latency: u16,
supervision_timeout: Duration<10_000>,
min_ce_length: Duration<625>,
max_ce_length: Duration<625>,
) -> Self
pub fn new( le_scan_interval: Duration<10_000>, le_scan_window: Duration<10_000>, use_filter_accept_list: bool, peer_addr_kind: AddrKind, peer_addr: BdAddr, own_addr_kind: AddrKind, conn_interval_min: Duration<1_250>, conn_interval_max: Duration<1_250>, max_latency: u16, supervision_timeout: Duration<10_000>, min_ce_length: Duration<625>, max_ce_length: Duration<625>, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl AsyncCmd for LeCreateConn
impl AsyncCmd for LeCreateConn
Sourceยงimpl Clone for LeCreateConn
impl Clone for LeCreateConn
Sourceยงfn clone(&self) -> LeCreateConn
fn clone(&self) -> LeCreateConn
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 LeCreateConn
impl Cmd for LeCreateConn
Sourceยงtype Params = LeCreateConnParams
type Params = LeCreateConnParams
Parameters type for this command.
Sourceยงfn params(&self) -> &LeCreateConnParams
fn params(&self) -> &LeCreateConnParams
Parameters expected for this command.
Sourceยงimpl Debug for LeCreateConn
impl Debug for LeCreateConn
Sourceยงimpl From<LeCreateConnParams> for LeCreateConn
impl From<LeCreateConnParams> for LeCreateConn
Sourceยงfn from(params: LeCreateConnParams) -> Self
fn from(params: LeCreateConnParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for LeCreateConn
impl Hash for LeCreateConn
Sourceยงimpl Ord for LeCreateConn
impl Ord for LeCreateConn
Sourceยงfn cmp(&self, other: &LeCreateConn) -> Ordering
fn cmp(&self, other: &LeCreateConn) -> 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 LeCreateConn
impl PartialEq for LeCreateConn
Sourceยงimpl PartialOrd for LeCreateConn
impl PartialOrd for LeCreateConn
Sourceยงimpl WriteHci for LeCreateConn
impl WriteHci for LeCreateConn
impl Copy for LeCreateConn
impl Eq for LeCreateConn
impl StructuralPartialEq for LeCreateConn
Auto Trait Implementationsยง
impl Freeze for LeCreateConn
impl RefUnwindSafe for LeCreateConn
impl Send for LeCreateConn
impl Sync for LeCreateConn
impl Unpin for LeCreateConn
impl UnwindSafe for LeCreateConn
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.