pub struct ManagedProcessState {Show 14 fields
pub name: String,
pub status: String,
pub ready: bool,
pub ready_state: String,
pub pid: Option<u32>,
pub last_exit_code: Option<i32>,
pub restart_count: u32,
pub last_error: Option<String>,
pub status_detail: Option<String>,
pub durable_log_path: Option<String>,
pub last_log_at: Option<Instant>,
pub recent_log_lines: usize,
pub started_at: Option<Instant>,
pub last_transition_at: Option<Instant>,
}Fields§
§name: String§status: String§ready: bool§ready_state: String§pid: Option<u32>§last_exit_code: Option<i32>§restart_count: u32§last_error: Option<String>§status_detail: Option<String>§durable_log_path: Option<String>§last_log_at: Option<Instant>§recent_log_lines: usize§started_at: Option<Instant>§last_transition_at: Option<Instant>Implementations§
Source§impl ManagedProcessState
impl ManagedProcessState
pub fn new(name: String) -> Self
pub fn uptime_seconds(&self) -> Option<f64>
pub fn last_transition_seconds(&self) -> Option<f64>
pub fn last_log_age_seconds(&self) -> Option<f64>
Trait Implementations§
Source§impl Clone for ManagedProcessState
impl Clone for ManagedProcessState
Source§fn clone(&self) -> ManagedProcessState
fn clone(&self) -> ManagedProcessState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ManagedProcessState
impl RefUnwindSafe for ManagedProcessState
impl Send for ManagedProcessState
impl Sync for ManagedProcessState
impl Unpin for ManagedProcessState
impl UnsafeUnpin for ManagedProcessState
impl UnwindSafe for ManagedProcessState
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,
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more