pub struct CapturedFrame {
pub time_us: u64,
pub transmitter: Transmitter,
pub transport: Transport,
pub counter: Option<u8>,
pub payload: Vec<u8>,
pub beacon: Option<BeaconInfo>,
pub rssi_dbm: Option<i8>,
pub utc_clock: bool,
}Available on crate feature
std only.Expand description
One Remote ID frame out of a capture.
Fields§
§time_us: u64Capture timestamp, microseconds (since the Unix epoch for pcap and pcapng; whatever the recorder used for RIDF without the UTC flag).
transmitter: TransmitterWho sent it.
transport: TransportThe radio link.
counter: Option<u8>The message counter, when the link carries one.
payload: Vec<u8>F3411 message or message pack, header byte first.
beacon: Option<BeaconInfo>Wi-Fi Beacon header fields (TSF, interval, capability, sequence, SSID).
rssi_dbm: Option<i8>Signal strength, when the capture records it (RIDF only for now).
utc_clock: booltime_us counts from the Unix epoch (always for pcap and pcapng;
RIDF says so per record).
Implementations§
Source§impl CapturedFrame
impl CapturedFrame
Sourcepub fn observation(&self, utc: bool) -> Observation<'_>
pub fn observation(&self, utc: bool) -> Observation<'_>
The trust observation for this frame, with the capture clock in
milliseconds as the monotonic clock and, when utc is set and the
capture clock is UTC, as the receiver’s UTC clock too.
Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Source§impl Debug for CapturedFrame
impl Debug for CapturedFrame
impl Eq for CapturedFrame
Source§impl PartialEq for CapturedFrame
impl PartialEq for CapturedFrame
impl StructuralPartialEq for CapturedFrame
Auto Trait Implementations§
impl Forget for CapturedFrame
impl Freeze for CapturedFrame
impl Move for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
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