pub struct ActiveSession {
pub id: Uuid,
pub name: String,
pub session_path: PathBuf,
pub started_at: f64,
pub pid: u32,
}Expand description
Metadata for an active recording session.
Stored as JSON in the state directory while a recording is in progress. Contains enough information to resume or clean up after a crash.
Fields§
§id: UuidUnique session identifier
name: StringHuman-readable session name
session_path: PathBufPath to the session NDJSON file
started_at: f64Unix timestamp when recording started
pid: u32PID of the recording process
Trait Implementations§
Source§impl Clone for ActiveSession
impl Clone for ActiveSession
Source§fn clone(&self) -> ActiveSession
fn clone(&self) -> ActiveSession
Returns a duplicate 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 ActiveSession
impl Debug for ActiveSession
Source§impl<'de> Deserialize<'de> for ActiveSession
impl<'de> Deserialize<'de> for ActiveSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ActiveSession
impl RefUnwindSafe for ActiveSession
impl Send for ActiveSession
impl Sync for ActiveSession
impl Unpin for ActiveSession
impl UnwindSafe for ActiveSession
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