Trait ya_service_bus::connection::CallRequestHandler
source · pub trait CallRequestHandler {
type Reply: Stream<Item = Result<ResponseChunk, Error>> + Unpin;
// Required method
fn do_call(
&mut self,
request_id: String,
caller: String,
address: String,
data: Vec<u8>,
no_reply: bool
) -> Self::Reply;
// Provided methods
fn handle_event(&mut self, caller: String, topic: String, data: Vec<u8>) { ... }
fn on_disconnect(&mut self) { ... }
}