pub trait Runnable{
// Required methods
fn process_start(&self) -> ProcFuture<'_>;
fn process_handle(&self) -> Arc<dyn ProcessControlHandler>;
// Provided method
fn process_name(&self) -> Cow<'static, str> { ... }
}Expand description
A long-running asynchronous component managed by the ProcessManager.
Required Methods§
Sourcefn process_start(&self) -> ProcFuture<'_>
fn process_start(&self) -> ProcFuture<'_>
Start the component. The returned future resolves when the process ends (normally or in error).
Sourcefn process_handle(&self) -> Arc<dyn ProcessControlHandler>
fn process_handle(&self) -> Arc<dyn ProcessControlHandler>
Obtain a handle for shutdown / reload signalling.
Provided Methods§
Sourcefn process_name(&self) -> Cow<'static, str>
fn process_name(&self) -> Cow<'static, str>
Human-readable name, used for logging only.