pub struct HostWatch { /* private fields */ }Implementations§
Source§impl HostWatch
impl HostWatch
pub fn new(now_ms: u64) -> Self
pub fn state(&self) -> WatchState
pub fn received(&mut self, now_ms: u64, message: Received) -> Action
Sourcepub fn heartbeat(&mut self, now_ms: u64, value: u64) -> Action
pub fn heartbeat(&mut self, now_ms: u64, value: u64) -> Action
Silence is counted only across time the host was observing: when the host polls late, the worker may have been frozen together with it (a stalled machine), which is no evidence that the worker stopped.
pub fn request_sent( &mut self, now_ms: u64, request: u32, _kind: RequestKind, ) -> Action
pub fn block_delivered(&mut self) -> Action
pub fn block_missed(&mut self) -> Action
pub fn shutdown(&mut self, now_ms: u64) -> Action
pub fn process_exited(&mut self, now_ms: u64, _exit_code: i32) -> Action
pub fn tick(&mut self, now_ms: u64) -> Action
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostWatch
impl RefUnwindSafe for HostWatch
impl Send for HostWatch
impl Sync for HostWatch
impl Unpin for HostWatch
impl UnsafeUnpin for HostWatch
impl UnwindSafe for HostWatch
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