Trait cakerabbit_core::ServiceWithClient [−][src]
pub trait ServiceWithClient {
type RequestFuture: Future<Output = Result<Value, Value>> + 'static + Send;
fn handle_request(
&mut self,
client: &mut Client,
method: &str,
params: &[Value]
) -> Self::RequestFuture;
fn handle_notification(
&mut self,
client: &mut Client,
method: &str,
params: &[Value]
);
}