pub struct SupervisorProcessLiveness { /* private fields */ }Expand description
Shared process-liveness registry keyed by supervised module_id.
Implementations§
Trait Implementations§
Source§impl Clone for SupervisorProcessLiveness
impl Clone for SupervisorProcessLiveness
Source§impl Debug for SupervisorProcessLiveness
impl Debug for SupervisorProcessLiveness
Source§impl Default for SupervisorProcessLiveness
impl Default for SupervisorProcessLiveness
Source§impl ModuleProcessLiveness for SupervisorProcessLiveness
impl ModuleProcessLiveness for SupervisorProcessLiveness
fn process_live(&self, module_id: &str) -> Option<bool>
Source§fn process_replacing(&self, module_id: &str) -> bool
fn process_replacing(&self, module_id: &str) -> bool
Whether the supervisor is replacing this module’s process right now: an
operator restart or reload, a health restart, or a crash respawn whose
backoff is running. A module in that state is not live, but a consumer
refused now should retry shortly rather than treat the target as gone.
Stopped, failed, and disabled modules are not replacing.
Auto Trait Implementations§
impl Freeze for SupervisorProcessLiveness
impl RefUnwindSafe for SupervisorProcessLiveness
impl Send for SupervisorProcessLiveness
impl Sync for SupervisorProcessLiveness
impl Unpin for SupervisorProcessLiveness
impl UnsafeUnpin for SupervisorProcessLiveness
impl UnwindSafe for SupervisorProcessLiveness
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