pub struct Report {Show 17 fields
pub address: Address,
pub identity: Option<Address>,
pub rssi: i8,
pub tx_power: Option<i8>,
pub primary_phy: Phy,
pub secondary_phy: Option<Phy>,
pub sid: Option<u8>,
pub periodic_interval: Option<u16>,
pub connectable: bool,
pub scannable: bool,
pub directed: bool,
pub legacy: bool,
pub direct_address: Option<Address>,
pub data: Vec<u8>,
pub scan_response: Option<Vec<u8>>,
pub truncated: bool,
pub time: SystemTime,
}Expand description
One advertisement, with its scan response when one came.
Fields§
§address: AddressThe address it was sent from.
identity: Option<Address>The identity behind a private address, when a stored IRK resolves it.
rssi: i8Received signal strength, dBm.
tx_power: Option<i8>The TX power the advertiser reported in the PDU header (extended advertising), dBm.
primary_phy: PhyThe primary PHY.
secondary_phy: Option<Phy>The secondary PHY (extended advertising).
sid: Option<u8>Advertising set id (extended advertising).
periodic_interval: Option<u16>Periodic advertising interval, 1.25 ms units, when the set has a train.
connectable: boolConnectable.
scannable: boolScannable.
directed: boolDirected (at direct_address).
legacy: boolSent with legacy PDUs.
direct_address: Option<Address>The address a directed advertisement is aimed at.
data: Vec<u8>Advertising data.
scan_response: Option<Vec<u8>>Scan response data.
truncated: boolThe controller could not deliver all of the data.
time: SystemTimeWhen it was received.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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