pub struct ServiceEntry {
pub name: String,
pub state: String,
pub active: bool,
pub sub_state: Option<String>,
pub memory_mb: Option<f64>,
pub extra: Extra,
}Expand description
One systemd-managed agent service as the service-list route reports it.
Fields§
§name: StringUnit name (e.g. ados-supervisor).
state: StringHigh-level state (e.g. active, failed, inactive).
active: boolWhether the unit is currently active.
sub_state: Option<String>systemd sub-state (e.g. running, exited, dead).
memory_mb: Option<f64>Resident memory in megabytes, when the unit reports it.
extra: ExtraAny extra per-service fields.
Trait Implementations§
Source§impl Clone for ServiceEntry
impl Clone for ServiceEntry
Source§impl Debug for ServiceEntry
impl Debug for ServiceEntry
Source§impl Default for ServiceEntry
impl Default for ServiceEntry
Source§impl<'de> Deserialize<'de> for ServiceEntry
impl<'de> Deserialize<'de> for ServiceEntry
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 ServiceEntry
impl PartialEq for ServiceEntry
Source§impl Serialize for ServiceEntry
impl Serialize for ServiceEntry
impl StructuralPartialEq for ServiceEntry
Auto Trait Implementations§
impl Freeze for ServiceEntry
impl RefUnwindSafe for ServiceEntry
impl Send for ServiceEntry
impl Sync for ServiceEntry
impl Unpin for ServiceEntry
impl UnsafeUnpin for ServiceEntry
impl UnwindSafe for ServiceEntry
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