Skip to main content

Service

Trait Service 

Source
pub trait Service: Send + 'static {
    // Required methods
    fn new(ctx: &Context<'_>) -> Self;
    fn run(&mut self, ctx: &ServiceContext<'_>);
}

Required Methods§

Source

fn new(ctx: &Context<'_>) -> Self

Source

fn run(&mut self, ctx: &ServiceContext<'_>)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§