pub struct ProcessSupervisor { /* private fields */ }Implementations§
Source§impl ProcessSupervisor
impl ProcessSupervisor
pub fn new(def: ProcessDef) -> Self
pub fn name(&self) -> &str
pub async fn status(&self) -> ProcessStatus
pub async fn uptime_secs(&self) -> f64
pub async fn last_exit_code(&self) -> Option<i32>
pub fn request_restart(&self)
pub async fn run( self: Arc<Self>, shutdown: Receiver<bool>, metrics: Option<Arc<ProcessMetrics>>, )
Auto Trait Implementations§
impl Freeze for ProcessSupervisor
impl !RefUnwindSafe for ProcessSupervisor
impl Send for ProcessSupervisor
impl Sync for ProcessSupervisor
impl Unpin for ProcessSupervisor
impl UnsafeUnpin for ProcessSupervisor
impl !UnwindSafe for ProcessSupervisor
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