pub struct ServiceRuntime {
pub main_pid: Option<ProcessId>,
pub status_errno: Option<i32>,
pub n_restarts: Option<u32>,
}Expand description
Service-specific runtime state.
Fields§
§main_pid: Option<ProcessId>Main process of the service, if it has one.
status_errno: Option<i32>errno-style status reported by the service via sd_notify.
n_restarts: Option<u32>Number of times systemd has restarted this service.
Trait Implementations§
Source§impl Clone for ServiceRuntime
impl Clone for ServiceRuntime
Source§fn clone(&self) -> ServiceRuntime
fn clone(&self) -> ServiceRuntime
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 ServiceRuntime
impl Debug for ServiceRuntime
Source§impl<'de> Deserialize<'de> for ServiceRuntime
impl<'de> Deserialize<'de> for ServiceRuntime
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 ServiceRuntime
impl RefUnwindSafe for ServiceRuntime
impl Send for ServiceRuntime
impl Sync for ServiceRuntime
impl Unpin for ServiceRuntime
impl UnsafeUnpin for ServiceRuntime
impl UnwindSafe for ServiceRuntime
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