Struct SimpleThreadWatchdog
pub struct SimpleThreadWatchdog { /* private fields */ }Expand description
Simple thread watchdog implementation
Trait Implementations§
§impl Debug for SimpleThreadWatchdog
impl Debug for SimpleThreadWatchdog
§impl ThreadWatchdog for SimpleThreadWatchdog
impl ThreadWatchdog for SimpleThreadWatchdog
§fn register_thread(
&mut self,
thread_id: u64,
details: ThreadDetails,
) -> Result<(), NerveError>
fn register_thread( &mut self, thread_id: u64, details: ThreadDetails, ) -> Result<(), NerveError>
Register a thread for monitoring
§fn unregister_thread(&mut self, thread_id: u64) -> Result<(), NerveError>
fn unregister_thread(&mut self, thread_id: u64) -> Result<(), NerveError>
Unregister a thread from monitoring
§fn record_heartbeat(&mut self, thread_id: u64) -> Result<(), NerveError>
fn record_heartbeat(&mut self, thread_id: u64) -> Result<(), NerveError>
Record a heartbeat for a thread
§fn thread_health(&self, thread_id: u64) -> Result<ThreadHealth, NerveError>
fn thread_health(&self, thread_id: u64) -> Result<ThreadHealth, NerveError>
Get thread health status
§fn system_health(&self) -> ThreadHealth
fn system_health(&self) -> ThreadHealth
Get overall system thread health
§fn start_monitoring(&mut self) -> Result<(), NerveError>
fn start_monitoring(&mut self) -> Result<(), NerveError>
Start monitoring
§fn stop_monitoring(&mut self) -> Result<(), NerveError>
fn stop_monitoring(&mut self) -> Result<(), NerveError>
Stop monitoring
Auto Trait Implementations§
impl Freeze for SimpleThreadWatchdog
impl RefUnwindSafe for SimpleThreadWatchdog
impl Send for SimpleThreadWatchdog
impl Sync for SimpleThreadWatchdog
impl Unpin for SimpleThreadWatchdog
impl UnwindSafe for SimpleThreadWatchdog
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