pub struct ServiceStats {Show 16 fields
pub active_enter_timestamp: u64,
pub active_exit_timestamp: u64,
pub cpuusage_nsec: u64,
pub inactive_exit_timestamp: u64,
pub ioread_bytes: u64,
pub ioread_operations: u64,
pub memory_available: u64,
pub memory_current: u64,
pub nrestarts: u32,
pub processes: u32,
pub restart_usec: u64,
pub state_change_timestamp: u64,
pub status_errno: i32,
pub tasks_current: u64,
pub timeout_clean_usec: u64,
pub watchdog_usec: u64,
}
Expand description
Selected subset of metrics collected from systemd OrgFreedesktopSystemd1Service
Fields§
§active_enter_timestamp: u64
§active_exit_timestamp: u64
§cpuusage_nsec: u64
§inactive_exit_timestamp: u64
§ioread_bytes: u64
§ioread_operations: u64
§memory_available: u64
§memory_current: u64
§nrestarts: u32
§processes: u32
§restart_usec: u64
§state_change_timestamp: u64
§status_errno: i32
§tasks_current: u64
§timeout_clean_usec: u64
§watchdog_usec: u64
Trait Implementations§
Source§impl Clone for ServiceStats
impl Clone for ServiceStats
Source§fn clone(&self) -> ServiceStats
fn clone(&self) -> ServiceStats
Returns a copy of the value. Read more
1.0.0 · 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 ServiceStats
impl Debug for ServiceStats
Source§impl Default for ServiceStats
impl Default for ServiceStats
Source§fn default() -> ServiceStats
fn default() -> ServiceStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceStats
impl<'de> Deserialize<'de> for ServiceStats
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 FieldNamesAsArray<16> for ServiceStats
impl FieldNamesAsArray<16> for ServiceStats
Source§const FIELD_NAMES_AS_ARRAY: [&'static str; 16]
const FIELD_NAMES_AS_ARRAY: [&'static str; 16]
Generated array of field names for ServiceStats
.
Source§impl PartialEq for ServiceStats
impl PartialEq for ServiceStats
Source§impl Serialize for ServiceStats
impl Serialize for ServiceStats
impl Eq for ServiceStats
impl StructuralPartialEq for ServiceStats
Auto Trait Implementations§
impl Freeze for ServiceStats
impl RefUnwindSafe for ServiceStats
impl Send for ServiceStats
impl Sync for ServiceStats
impl Unpin for ServiceStats
impl UnwindSafe for ServiceStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.