StatefulMethodHandler

Trait StatefulMethodHandler 

Source
pub trait StatefulMethodHandler<C: ServiceContext>: Send + Sync {
    // Required method
    fn call(
        &self,
        context: &C,
        params: Option<Value>,
        id: Option<RequestId>,
    ) -> Result<Response, C::Error>;
}
Expand description

Trait for stateful method handlers

Required Methods§

Source

fn call( &self, context: &C, params: Option<Value>, id: Option<RequestId>, ) -> Result<Response, C::Error>

Call the method handler with context and parameters

Implementors§