pub struct DriveWindow {
pub session_id: Option<String>,
pub mode: Option<String>,
pub last_heartbeat_at_monotonic_ns: Option<u64>,
}Expand description
An open interactive drive window. Bundling the drive facts behind a single
Option<DriveWindow> makes the inconsistent {drive_active: false, drive_session_id: Some(..)} state impossible: either there is a window
(Some) carrying all its fields, or there is none (None).
Fields§
§session_id: Option<String>§mode: Option<String>§last_heartbeat_at_monotonic_ns: Option<u64>Monotonic-clock baseline of the last drive heartbeat (count-during-sleep
ns; see crate::MonotonicTimestamp).
Trait Implementations§
Source§impl Clone for DriveWindow
impl Clone for DriveWindow
Source§fn clone(&self) -> DriveWindow
fn clone(&self) -> DriveWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DriveWindow
impl Debug for DriveWindow
Source§impl Default for DriveWindow
impl Default for DriveWindow
Source§fn default() -> DriveWindow
fn default() -> DriveWindow
Returns the “default value” for a type. Read more
Source§impl PartialEq for DriveWindow
impl PartialEq for DriveWindow
impl StructuralPartialEq for DriveWindow
Auto Trait Implementations§
impl Freeze for DriveWindow
impl RefUnwindSafe for DriveWindow
impl Send for DriveWindow
impl Sync for DriveWindow
impl Unpin for DriveWindow
impl UnsafeUnpin for DriveWindow
impl UnwindSafe for DriveWindow
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