pub struct LeSetExtAdvParamsV2(/* private fields */);
Expand description
LE Set Extended Advertising Parameters command ๐
Implementationsยง
Sourceยงimpl LeSetExtAdvParamsV2
impl LeSetExtAdvParamsV2
Sourcepub fn new(
adv_handle: AdvHandle,
adv_event_props: AdvEventProps,
primary_adv_interval_min: ExtDuration<625>,
primary_adv_interval_max: ExtDuration<625>,
primary_adv_channel_map: AdvChannelMap,
own_addr_kind: AddrKind,
peer_addr_kind: AddrKind,
peer_addr: BdAddr,
adv_filter_policy: AdvFilterPolicy,
adv_tx_power: i8,
primary_adv_phy: PhyKind,
secondary_adv_max_skip: u8,
secondary_adv_phy: PhyKind,
adv_sid: u8,
scan_request_notification_enable: bool,
primary_adv_phy_options: AdvPhyOptions,
secondary_adv_phy_options: AdvPhyOptions,
) -> Self
pub fn new( adv_handle: AdvHandle, adv_event_props: AdvEventProps, primary_adv_interval_min: ExtDuration<625>, primary_adv_interval_max: ExtDuration<625>, primary_adv_channel_map: AdvChannelMap, own_addr_kind: AddrKind, peer_addr_kind: AddrKind, peer_addr: BdAddr, adv_filter_policy: AdvFilterPolicy, adv_tx_power: i8, primary_adv_phy: PhyKind, secondary_adv_max_skip: u8, secondary_adv_phy: PhyKind, adv_sid: u8, scan_request_notification_enable: bool, primary_adv_phy_options: AdvPhyOptions, secondary_adv_phy_options: AdvPhyOptions, ) -> Self
Create a new instance of a command.
Trait Implementationsยง
Sourceยงimpl Clone for LeSetExtAdvParamsV2
impl Clone for LeSetExtAdvParamsV2
Sourceยงfn clone(&self) -> LeSetExtAdvParamsV2
fn clone(&self) -> LeSetExtAdvParamsV2
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 LeSetExtAdvParamsV2
impl Cmd for LeSetExtAdvParamsV2
Sourceยงtype Params = LeSetExtAdvParamsV2Params
type Params = LeSetExtAdvParamsV2Params
Parameters type for this command.
Sourceยงfn params(&self) -> &LeSetExtAdvParamsV2Params
fn params(&self) -> &LeSetExtAdvParamsV2Params
Parameters expected for this command.
Sourceยงimpl Debug for LeSetExtAdvParamsV2
impl Debug for LeSetExtAdvParamsV2
Sourceยงimpl From<LeSetExtAdvParamsV2Params> for LeSetExtAdvParamsV2
impl From<LeSetExtAdvParamsV2Params> for LeSetExtAdvParamsV2
Sourceยงfn from(params: LeSetExtAdvParamsV2Params) -> Self
fn from(params: LeSetExtAdvParamsV2Params) -> Self
Converts to this type from the input type.
Sourceยงimpl Hash for LeSetExtAdvParamsV2
impl Hash for LeSetExtAdvParamsV2
Sourceยงimpl Ord for LeSetExtAdvParamsV2
impl Ord for LeSetExtAdvParamsV2
Sourceยงfn cmp(&self, other: &LeSetExtAdvParamsV2) -> Ordering
fn cmp(&self, other: &LeSetExtAdvParamsV2) -> 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 LeSetExtAdvParamsV2
impl PartialEq for LeSetExtAdvParamsV2
Sourceยงimpl PartialOrd for LeSetExtAdvParamsV2
impl PartialOrd for LeSetExtAdvParamsV2
Sourceยงimpl SyncCmd for LeSetExtAdvParamsV2
impl SyncCmd for LeSetExtAdvParamsV2
Sourceยงtype Return = i8
type Return = i8
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 LeSetExtAdvParamsV2
impl WriteHci for LeSetExtAdvParamsV2
impl Copy for LeSetExtAdvParamsV2
impl Eq for LeSetExtAdvParamsV2
impl StructuralPartialEq for LeSetExtAdvParamsV2
Auto Trait Implementationsยง
impl Freeze for LeSetExtAdvParamsV2
impl RefUnwindSafe for LeSetExtAdvParamsV2
impl Send for LeSetExtAdvParamsV2
impl Sync for LeSetExtAdvParamsV2
impl Unpin for LeSetExtAdvParamsV2
impl UnwindSafe for LeSetExtAdvParamsV2
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.