zbus_lib/rpc/mod.rs
1use std::sync::mpsc::Sender;
2
3pub use {
4 handler::WsRpcHandler,
5 io::{
6 Handler, IOHandlers,
7 },
8 protocol::Protocol,
9};
10
11use crate::message::Request;
12use crate::wsocket::Instruct as WsInstruct;
13
14mod io;
15
16mod handler;
17
18mod protocol;
19
20pub enum Instruct {
21 RPCRequest(Request, Sender<WsInstruct>),
22 Exit,
23}