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