pub struct ProcessMetrics { /* private fields */ }Implementations§
Source§impl ProcessMetrics
impl ProcessMetrics
pub fn new(registry: &dyn MetricsRegistry) -> Self
pub fn set_up(&self, name: &str, running: bool)
pub fn inc_restarts(&self, name: &str)
pub fn set_uptime(&self, name: &str, secs: f64)
pub fn set_exit_code(&self, name: &str, code: i32)
pub fn set_status(&self, name: &str, active_status: &str)
Auto Trait Implementations§
impl Freeze for ProcessMetrics
impl !RefUnwindSafe for ProcessMetrics
impl Send for ProcessMetrics
impl Sync for ProcessMetrics
impl Unpin for ProcessMetrics
impl UnsafeUnpin for ProcessMetrics
impl !UnwindSafe for ProcessMetrics
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