Struct jsonrpc_tcp_server::Dispatcher
[−]
[src]
pub struct Dispatcher { /* fields omitted */ }
Methods
impl Dispatcher
[src]
fn new(channels: Arc<Mutex<HashMap<SocketAddr, Sender<String>>>>) -> Self
fn push_message(
&self,
peer_addr: &SocketAddr,
msg: String
) -> Result<(), PushMessageError>
&self,
peer_addr: &SocketAddr,
msg: String
) -> Result<(), PushMessageError>