pub trait ServiceInstance: Send {
// Required methods
fn run(&mut self, context: ExecutionContext) -> ServiceFuture<'_, ()>;
fn stop(&mut self) -> ServiceFuture<'_, ()>;
fn cleanup(&mut self) -> ServiceFuture<'_, ()>;
}Required Methods§
fn run(&mut self, context: ExecutionContext) -> ServiceFuture<'_, ()>
fn stop(&mut self) -> ServiceFuture<'_, ()>
fn cleanup(&mut self) -> ServiceFuture<'_, ()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".