pub enum Advertisement<'d> {
ConnectableScannableUndirected {
adv_data: &'d [u8],
scan_data: &'d [u8],
},
ConnectableNonscannableDirected {
peer: Address,
},
ConnectableNonscannableDirectedHighDuty {
peer: Address,
},
NonconnectableScannableUndirected {
adv_data: &'d [u8],
scan_data: &'d [u8],
},
NonconnectableNonscannableUndirected {
adv_data: &'d [u8],
},
ExtConnectableNonscannableUndirected {
adv_data: &'d [u8],
},
ExtConnectableNonscannableDirected {
peer: Address,
adv_data: &'d [u8],
},
ExtNonconnectableScannableUndirected {
scan_data: &'d [u8],
},
ExtNonconnectableScannableDirected {
peer: Address,
scan_data: &'d [u8],
},
ExtNonconnectableNonscannableUndirected {
anonymous: bool,
adv_data: &'d [u8],
},
ExtNonconnectableNonscannableDirected {
anonymous: bool,
peer: Address,
adv_data: &'d [u8],
},
}
Expand description
Advertisement payload depending on which advertisement kind requested.
Variants§
ConnectableScannableUndirected
Connectable and scannable undirected advertisement.
ConnectableNonscannableDirected
Connectable and non-scannable directed advertisement.
ConnectableNonscannableDirectedHighDuty
Connectable and non-scannable directed advertisement with high duty cycle.
NonconnectableScannableUndirected
Nonconnectable and scannable undirected advertisement.
NonconnectableNonscannableUndirected
Nonconnectable and nonscannable undirected advertisement.
ExtConnectableNonscannableUndirected
Extended connectable and non-scannable undirected advertisement.
ExtConnectableNonscannableDirected
Extended connectable and non-scannable directed advertisement.
Fields
ExtNonconnectableScannableUndirected
Extended nonconnectable and scannable undirected advertisement.
ExtNonconnectableScannableDirected
Extended nonconnectable and scannable directed advertisement.
Fields
ExtNonconnectableNonscannableUndirected
Extended nonconnectable and nonscannable undirected advertisement.
Fields
ExtNonconnectableNonscannableDirected
Extended nonconnectable and nonscannable directed advertisement.
Trait Implementations§
Source§impl<'d> Clone for Advertisement<'d>
impl<'d> Clone for Advertisement<'d>
Source§fn clone(&self) -> Advertisement<'d>
fn clone(&self) -> Advertisement<'d>
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<'d> Debug for Advertisement<'d>
impl<'d> Debug for Advertisement<'d>
impl<'d> Copy for Advertisement<'d>
Auto Trait Implementations§
impl<'d> Freeze for Advertisement<'d>
impl<'d> RefUnwindSafe for Advertisement<'d>
impl<'d> Send for Advertisement<'d>
impl<'d> Sync for Advertisement<'d>
impl<'d> Unpin for Advertisement<'d>
impl<'d> UnwindSafe for Advertisement<'d>
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