pub struct AdvertisingPacket {
pub adv_data: Vec<u8>,
pub scan_rsp: Option<Vec<u8>>,
pub extended: bool,
}Expand description
Built advertising packet
Fields§
§adv_data: Vec<u8>Advertising data
scan_rsp: Option<Vec<u8>>Scan response data (optional)
extended: boolWhether this uses extended advertising
Implementations§
Source§impl AdvertisingPacket
impl AdvertisingPacket
Sourcepub fn fits_legacy(&self) -> bool
pub fn fits_legacy(&self) -> bool
Check if this packet fits in legacy advertising
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Total advertising data size
Trait Implementations§
Source§impl Clone for AdvertisingPacket
impl Clone for AdvertisingPacket
Source§fn clone(&self) -> AdvertisingPacket
fn clone(&self) -> AdvertisingPacket
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 moreAuto Trait Implementations§
impl Freeze for AdvertisingPacket
impl RefUnwindSafe for AdvertisingPacket
impl Send for AdvertisingPacket
impl Sync for AdvertisingPacket
impl Unpin for AdvertisingPacket
impl UnwindSafe for AdvertisingPacket
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