pub struct PastConnectionData {
pub bssid: Bssid,
pub connection_attempt_time: Time,
pub time_to_connect: Duration,
pub disconnect_time: Time,
pub connection_uptime: Duration,
pub disconnect_reason: DisconnectReason,
pub signal_data_at_disconnect: SignalData,
pub average_tx_rate: u32,
}
Expand description
Data points related to historical connection
Fields§
§bssid: Bssid
§connection_attempt_time: Time
Time at which connect was first attempted
time_to_connect: Duration
Duration from connection attempt to success
disconnect_time: Time
Time at which the connection was ended
connection_uptime: Duration
The time that the connection was up - from established to disconnected.
disconnect_reason: DisconnectReason
Cause of disconnect or failure to connect
signal_data_at_disconnect: SignalData
Final signal strength measure before disconnect
average_tx_rate: u32
Average phy rate over connection duration
Implementations§
source§impl PastConnectionData
impl PastConnectionData
pub fn new( bssid: Bssid, connection_attempt_time: Time, time_to_connect: Duration, disconnect_time: Time, connection_uptime: Duration, disconnect_reason: DisconnectReason, signal_data_at_disconnect: SignalData, average_tx_rate: u32 ) -> Self
Trait Implementations§
source§impl Clone for PastConnectionData
impl Clone for PastConnectionData
source§fn clone(&self) -> PastConnectionData
fn clone(&self) -> PastConnectionData
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 PastConnectionData
impl Debug for PastConnectionData
source§impl PartialEq for PastConnectionData
impl PartialEq for PastConnectionData
source§fn eq(&self, other: &PastConnectionData) -> bool
fn eq(&self, other: &PastConnectionData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Timestamped for PastConnectionData
impl Timestamped for PastConnectionData
impl Copy for PastConnectionData
impl StructuralPartialEq for PastConnectionData
Auto Trait Implementations§
impl Freeze for PastConnectionData
impl RefUnwindSafe for PastConnectionData
impl Send for PastConnectionData
impl Sync for PastConnectionData
impl Unpin for PastConnectionData
impl UnwindSafe for PastConnectionData
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