Trait ManagedProc

Source
pub trait ManagedProc {
    // Required method
    fn run_proc(
        self: Box<Self>,
        shutdown: ShutdownSignal,
    ) -> LocalBoxFuture<'static, Result<()>>;
}

Required Methods§

Source

fn run_proc( self: Box<Self>, shutdown: ShutdownSignal, ) -> LocalBoxFuture<'static, Result<()>>

Implementors§

Source§

impl ManagedProc for Supervisor

Source§

impl<O, P> ManagedProc for P
where O: Future<Output = Result<()>> + 'static, P: FnOnce(ShutdownSignal) -> O,