pub struct SessionSnapshot {
pub session_id: Option<String>,
pub tracking: TrackingState,
pub played_seconds: u64,
pub fps_sampling: bool,
pub samples_taken: u32,
pub last_fps_avg: Option<f32>,
pub lobby_events: LobbyPollingState,
}Expand description
What the session looks like right now — for logs, overlays and QA screens.
Read it with crate::ArcaneClient::session. It is a copy: nothing here
keeps the session alive or blocks the background thread.
Fields§
§session_id: Option<String>Session id issued by the Arcane desktop app, once it acknowledged the session.
tracking: TrackingStateWhether the session is tracked, waiting for the desktop app, or off.
played_seconds: u64Playtime since init, in seconds, measured with a monotonic clock.
fps_sampling: boolWhether the player has performance sharing enabled in Arcane desktop.
FPS windows only open while this is true.
samples_taken: u32How many FPS samples this session has produced.
last_fps_avg: Option<f32>Average frame rate of the most recent sample.
lobby_events: LobbyPollingStateWhether the session thread is polling Arcane for lobby events, and why not when it is not.
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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