pub struct StatusReport {
pub running: bool,
pub version: Option<String>,
pub pid: Option<u32>,
pub managed_by: Option<ManagedBy>,
pub app: Vec<StatusRow>,
}Expand description
The typed answer to a status question, shared by the CLI and the IPC server.info
response (spec decision 4).
When a server answers, the CLI prints the framework’s fields and then the
application’s rows as name: value lines; a GUI could read the
same serialised shape from the IPC method instead. When nothing is listening, the
report is StatusReport::running = false and the app rows are skipped.
Fields§
§running: boolWhether a server is answering at all.
version: Option<String>The server’s version, when it is running.
pid: Option<u32>Its pid, when it is running.
managed_by: Option<ManagedBy>How the running server was started, when it is running.
app: Vec<StatusRow>The application’s own rows, rendered after the framework’s.
Trait Implementations§
Source§impl Clone for StatusReport
impl Clone for StatusReport
Source§impl Debug for StatusReport
impl Debug for StatusReport
Source§impl<'de> Deserialize<'de> for StatusReport
impl<'de> Deserialize<'de> for StatusReport
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 Forget for StatusReport
impl Freeze for StatusReport
impl Move for StatusReport
impl RefUnwindSafe for StatusReport
impl Send for StatusReport
impl Sync for StatusReport
impl Unpin for StatusReport
impl UnsafeUnpin for StatusReport
impl UnwindSafe for StatusReport
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