pub struct AdvertisementParameters {
    pub primary_phy: PhyKind,
    pub secondary_phy: PhyKind,
    pub tx_power: TxPower,
    pub timeout: Option<Duration>,
    pub max_events: Option<u8>,
    pub interval_min: Duration,
    pub interval_max: Duration,
    pub channel_map: Option<AdvChannelMap>,
    pub filter_policy: AdvFilterPolicy,
    pub fragment: bool,
}Expand description
Parameters for an advertisement.
Fields§
§primary_phy: PhyKindPhy selection
secondary_phy: PhyKindSecondary phy selection
tx_power: TxPowerTransmission power
timeout: Option<Duration>Timeout duration
max_events: Option<u8>Max advertising events
interval_min: DurationMinimum advertising interval
interval_max: DurationMaximum advertising interval
channel_map: Option<AdvChannelMap>Which advertising channels to use
filter_policy: AdvFilterPolicyFiltering policy
fragment: boolFragmentation preference
Trait Implementations§
Source§impl Clone for AdvertisementParameters
 
impl Clone for AdvertisementParameters
Source§fn clone(&self) -> AdvertisementParameters
 
fn clone(&self) -> AdvertisementParameters
Returns a copy 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 Debug for AdvertisementParameters
 
impl Debug for AdvertisementParameters
Source§impl Default for AdvertisementParameters
 
impl Default for AdvertisementParameters
Source§impl Format for AdvertisementParameters
 
impl Format for AdvertisementParameters
impl Copy for AdvertisementParameters
Auto Trait Implementations§
impl Freeze for AdvertisementParameters
impl RefUnwindSafe for AdvertisementParameters
impl Send for AdvertisementParameters
impl Sync for AdvertisementParameters
impl Unpin for AdvertisementParameters
impl UnwindSafe for AdvertisementParameters
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