pub struct ShellSessionStatusResponse {
pub session_id: SessionId,
pub bucket_id: BucketId,
pub state: SessionState,
pub cwd: Option<String>,
pub env_snapshot: Vec<(String, String)>,
pub last_active_at: u64,
}Expand description
shell_session_status response: lifecycle state, current cwd, a
bounded env snapshot, and the last-active timestamp (epoch seconds).
Fields§
§session_id: SessionId§bucket_id: BucketId§state: SessionState§cwd: Option<String>Best-known current working directory. Tracked from the requested
start cwd and from cd-shaped session lines (see SHELL_SESSION
runtime docs); a value the daemon has not observed reports the
start cwd. Bounded.
env_snapshot: Vec<(String, String)>Bounded env snapshot captured at start (overlay entries), capped at
MAX_SESSION_ENV_ITEMS.
last_active_at: u64Seconds since the unix epoch of the last exec/status touch.
Trait Implementations§
Source§impl Clone for ShellSessionStatusResponse
impl Clone for ShellSessionStatusResponse
Source§fn clone(&self) -> ShellSessionStatusResponse
fn clone(&self) -> ShellSessionStatusResponse
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 ShellSessionStatusResponse
impl Debug for ShellSessionStatusResponse
Source§impl<'de> Deserialize<'de> for ShellSessionStatusResponse
impl<'de> Deserialize<'de> for ShellSessionStatusResponse
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 ShellSessionStatusResponse
impl RefUnwindSafe for ShellSessionStatusResponse
impl Send for ShellSessionStatusResponse
impl Sync for ShellSessionStatusResponse
impl Unpin for ShellSessionStatusResponse
impl UnsafeUnpin for ShellSessionStatusResponse
impl UnwindSafe for ShellSessionStatusResponse
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