Skip to main content

Handler

Trait Handler 

Source
pub trait Handler<State>:
    Send
    + Sync
    + 'static {
    // Required method
    fn call(
        &self,
        ctx: RequestContext,
        state: Arc<State>,
    ) -> Pin<Box<dyn Future<Output = Response> + Send + 'static>>;
}
Expand description

Handler for a RESP command.

Required Methods§

Source

fn call( &self, ctx: RequestContext, state: Arc<State>, ) -> Pin<Box<dyn Future<Output = Response> + Send + 'static>>

Implementors§