pub struct LeSetScanParams(/* private fields */);
Expand description
LE Set Scan Parameters command ๐
Implementationsยง
Sourceยงimpl LeSetScanParams
impl LeSetScanParams
Sourcepub fn new(
le_scan_kind: LeScanKind,
le_scan_interval: Duration<10_000>,
le_scan_window: Duration<10_000>,
own_addr_kind: AddrKind,
scanning_filter_policy: ScanningFilterPolicy,
) -> Self
pub fn new( le_scan_kind: LeScanKind, le_scan_interval: Duration<10_000>, le_scan_window: Duration<10_000>, own_addr_kind: AddrKind, scanning_filter_policy: ScanningFilterPolicy, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for LeSetScanParams
impl Clone for LeSetScanParams
Sourceยงfn clone(&self) -> LeSetScanParams
fn clone(&self) -> LeSetScanParams
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 LeSetScanParams
impl Cmd for LeSetScanParams
Sourceยงtype Params = LeSetScanParamsParams
type Params = LeSetScanParamsParams
Parameters type for this command.
Sourceยงfn params(&self) -> &LeSetScanParamsParams
fn params(&self) -> &LeSetScanParamsParams
Parameters expected for this command.
Sourceยงimpl Debug for LeSetScanParams
impl Debug for LeSetScanParams
Sourceยงimpl From<LeSetScanParamsParams> for LeSetScanParams
impl From<LeSetScanParamsParams> for LeSetScanParams
Sourceยงfn from(params: LeSetScanParamsParams) -> Self
fn from(params: LeSetScanParamsParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for LeSetScanParams
impl Hash for LeSetScanParams
Sourceยงimpl Ord for LeSetScanParams
impl Ord for LeSetScanParams
Sourceยงfn cmp(&self, other: &LeSetScanParams) -> Ordering
fn cmp(&self, other: &LeSetScanParams) -> 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 LeSetScanParams
impl PartialEq for LeSetScanParams
Sourceยงimpl PartialOrd for LeSetScanParams
impl PartialOrd for LeSetScanParams
Sourceยงimpl SyncCmd for LeSetScanParams
impl SyncCmd for LeSetScanParams
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 LeSetScanParams
impl WriteHci for LeSetScanParams
impl Copy for LeSetScanParams
impl Eq for LeSetScanParams
impl StructuralPartialEq for LeSetScanParams
Auto Trait Implementationsยง
impl Freeze for LeSetScanParams
impl RefUnwindSafe for LeSetScanParams
impl Send for LeSetScanParams
impl Sync for LeSetScanParams
impl Unpin for LeSetScanParams
impl UnwindSafe for LeSetScanParams
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.