pub struct LeSetAdvParams(/* private fields */);
Expand description
LE Set Advertising Parameters command ๐
Implementationsยง
Sourceยงimpl LeSetAdvParams
impl LeSetAdvParams
Sourcepub fn new(
adv_interval_min: Duration<625>,
adv_interval_max: Duration<625>,
adv_kind: AdvKind,
own_addr_kind: AddrKind,
peer_addr_kind: AddrKind,
peer_addr: BdAddr,
adv_channel_map: AdvChannelMap,
adv_filter_policy: AdvFilterPolicy,
) -> Self
pub fn new( adv_interval_min: Duration<625>, adv_interval_max: Duration<625>, adv_kind: AdvKind, own_addr_kind: AddrKind, peer_addr_kind: AddrKind, peer_addr: BdAddr, adv_channel_map: AdvChannelMap, adv_filter_policy: AdvFilterPolicy, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for LeSetAdvParams
impl Clone for LeSetAdvParams
Sourceยงfn clone(&self) -> LeSetAdvParams
fn clone(&self) -> LeSetAdvParams
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 LeSetAdvParams
impl Cmd for LeSetAdvParams
Sourceยงtype Params = LeSetAdvParamsParams
type Params = LeSetAdvParamsParams
Parameters type for this command.
Sourceยงfn params(&self) -> &LeSetAdvParamsParams
fn params(&self) -> &LeSetAdvParamsParams
Parameters expected for this command.
Sourceยงimpl Debug for LeSetAdvParams
impl Debug for LeSetAdvParams
Sourceยงimpl From<LeSetAdvParamsParams> for LeSetAdvParams
impl From<LeSetAdvParamsParams> for LeSetAdvParams
Sourceยงfn from(params: LeSetAdvParamsParams) -> Self
fn from(params: LeSetAdvParamsParams) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for LeSetAdvParams
impl Hash for LeSetAdvParams
Sourceยงimpl Ord for LeSetAdvParams
impl Ord for LeSetAdvParams
Sourceยงfn cmp(&self, other: &LeSetAdvParams) -> Ordering
fn cmp(&self, other: &LeSetAdvParams) -> 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 LeSetAdvParams
impl PartialEq for LeSetAdvParams
Sourceยงimpl PartialOrd for LeSetAdvParams
impl PartialOrd for LeSetAdvParams
Sourceยงimpl SyncCmd for LeSetAdvParams
impl SyncCmd for LeSetAdvParams
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 LeSetAdvParams
impl WriteHci for LeSetAdvParams
impl Copy for LeSetAdvParams
impl Eq for LeSetAdvParams
impl StructuralPartialEq for LeSetAdvParams
Auto Trait Implementationsยง
impl Freeze for LeSetAdvParams
impl RefUnwindSafe for LeSetAdvParams
impl Send for LeSetAdvParams
impl Sync for LeSetAdvParams
impl Unpin for LeSetAdvParams
impl UnwindSafe for LeSetAdvParams
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.