pub struct SessionStats {
pub connection_stats: ConnectionStats,
pub state: SessionState,
pub last_state_change: Instant,
pub activations: u32,
pub deactivations: u32,
pub total_active_time: Duration,
pub last_activation: Option<Instant>,
}Expand description
Session statistics
Fields§
§connection_stats: ConnectionStatsConnection statistics
state: SessionStateSession state
last_state_change: InstantLast state change time
activations: u32Number of times this session has been activated
deactivations: u32Number of times this session has been deactivated
total_active_time: DurationTotal time this session has been active
last_activation: Option<Instant>Last activation time
Trait Implementations§
Source§impl Clone for SessionStats
impl Clone for SessionStats
Source§fn clone(&self) -> SessionStats
fn clone(&self) -> SessionStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionStats
impl Debug for SessionStats
Auto Trait Implementations§
impl Freeze for SessionStats
impl RefUnwindSafe for SessionStats
impl Send for SessionStats
impl Sync for SessionStats
impl Unpin for SessionStats
impl UnwindSafe for SessionStats
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