Skip to main content

ServiceInstance

Trait ServiceInstance 

Source
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§

Source

fn run(&mut self, context: ExecutionContext) -> ServiceFuture<'_, ()>

Source

fn stop(&mut self) -> ServiceFuture<'_, ()>

Source

fn cleanup(&mut self) -> ServiceFuture<'_, ()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§