pub struct Session {
pub port: u16,
pub key_dir: PathBuf,
pub pid: Option<u32>,
pub exe: Option<String>,
pub log: Option<PathBuf>,
pub launched: bool,
pub trace: Option<Trace>,
pub no_raise: bool,
}Expand description
What a session remembers.
Fields§
§port: u16§key_dir: PathBuf§pid: Option<u32>The app’s process, when open started it.
exe: Option<String>§log: Option<PathBuf>Where a launched app’s output goes.
launched: boolStarted by open (so close quits it), not found by connect.
trace: Option<Trace>§no_raise: boolScreenshots in this session never raise the window (open --no-raise).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
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
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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