pub struct ServiceContext {
pub type: Option<String>,
pub restart_usec: Option<u64>,
pub watchdog_usec: Option<u64>,
}Expand description
Service-specific configuration.
Fields§
§type: Option<String>Service type: simple, oneshot, notify, notify-reload, …
restart_usec: Option<u64>Configured restart delay in microseconds.
watchdog_usec: Option<u64>Configured watchdog timeout in microseconds.
This is the configured value; the D-Bus property of the same name is
the currently armed one, which reads infinity while a service is not
running. They agree for running services, which is the case monitord
collects, and systemd exposes no runtime equivalent over varlink.
Trait Implementations§
Source§impl Clone for ServiceContext
impl Clone for ServiceContext
Source§fn clone(&self) -> ServiceContext
fn clone(&self) -> ServiceContext
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 ServiceContext
impl Debug for ServiceContext
Source§impl<'de> Deserialize<'de> for ServiceContext
impl<'de> Deserialize<'de> for ServiceContext
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 ServiceContext
impl RefUnwindSafe for ServiceContext
impl Send for ServiceContext
impl Sync for ServiceContext
impl Unpin for ServiceContext
impl UnsafeUnpin for ServiceContext
impl UnwindSafe for ServiceContext
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