pub struct TaskStatus {
pub name: String,
pub pid: u32,
pub command: String,
pub cwd: Option<String>,
pub alive: bool,
pub uptime_secs: u64,
}Expand description
Status information for a task.
Fields§
§name: StringTask name.
pid: u32Process ID.
command: StringThe command being run.
cwd: Option<String>Working directory.
alive: boolWhether the process is still alive.
uptime_secs: u64Seconds since the task was started.
Trait Implementations§
Source§impl Debug for TaskStatus
impl Debug for TaskStatus
Source§impl JsonSchema for TaskStatus
impl JsonSchema for TaskStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnwindSafe for TaskStatus
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