pub struct PluginHealth {
pub plugin_name: String,
pub state: PluginState,
pub crashes_in_window: usize,
pub last_used: Option<Instant>,
pub last_crash: Option<Instant>,
}Expand description
Lifetime view exposed to doctor. Captures whether the
plugin is alive, how many times it crashed in the rolling
window, and whether the restart cap has tripped.
Fields§
§plugin_name: String§state: PluginState§crashes_in_window: usize§last_used: Option<Instant>§last_crash: Option<Instant>Trait Implementations§
Source§impl Clone for PluginHealth
impl Clone for PluginHealth
Source§fn clone(&self) -> PluginHealth
fn clone(&self) -> PluginHealth
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 PluginHealth
impl Debug for PluginHealth
impl Eq for PluginHealth
Source§impl PartialEq for PluginHealth
impl PartialEq for PluginHealth
Source§fn eq(&self, other: &PluginHealth) -> bool
fn eq(&self, other: &PluginHealth) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PluginHealth
Auto Trait Implementations§
impl Freeze for PluginHealth
impl RefUnwindSafe for PluginHealth
impl Send for PluginHealth
impl Sync for PluginHealth
impl Unpin for PluginHealth
impl UnsafeUnpin for PluginHealth
impl UnwindSafe for PluginHealth
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.