pub struct DaemonStatus {
pub pid: u32,
pub started_at: String,
pub connected_clients: u32,
pub schedules: Option<u32>,
pub unresponsive: Option<bool>,
pub entry: Option<String>,
pub build_id: Option<Option<String>>,
pub lines: Vec<ScreenLine>,
}Expand description
Answer to a status request on a current host (TS DaemonStatus).
Field semantics worth keeping:
unresponsive: the pid is alive but IPC is dead — counts are unknown, they are not zero.entry: the host’s entry script (source or bundle) for vintage checks.build_id: the running host’s build identity (its own version). It is informational: clients compare protocol versions, never these strings, and absent means an older host that did not report one (seecrate::util::de_trio_option).
Fields§
§pid: u32§started_at: String§connected_clients: u32§schedules: Option<u32>§unresponsive: Option<bool>Present only as true; counts are unknown in this state.
entry: Option<String>§build_id: Option<Option<String>>§lines: Vec<ScreenLine>The status screen, composed by the host. Defaulted and skipped while empty so a host that predates the field still round-trips its own shape; a client prints it and decides nothing.
Trait Implementations§
Source§impl Clone for DaemonStatus
impl Clone for DaemonStatus
Source§impl Debug for DaemonStatus
impl Debug for DaemonStatus
Source§impl<'de> Deserialize<'de> for DaemonStatus
impl<'de> Deserialize<'de> for DaemonStatus
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
Source§impl PartialEq for DaemonStatus
impl PartialEq for DaemonStatus
Source§impl Serialize for DaemonStatus
impl Serialize for DaemonStatus
impl StructuralPartialEq for DaemonStatus
Auto Trait Implementations§
impl Forget for DaemonStatus
impl Freeze for DaemonStatus
impl Move for DaemonStatus
impl RefUnwindSafe for DaemonStatus
impl Send for DaemonStatuswhere
RawVecInner: Send,
impl Sync for DaemonStatuswhere
RawVecInner: Sync,
impl Unpin for DaemonStatus
impl UnsafeUnpin for DaemonStatuswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ScreenLine>: UnsafeUnpin,
impl UnwindSafe for DaemonStatuswhere
RawVecInner: UnwindSafe,
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