Struct jsonrpc_tcp_server::Dispatcher [−][src]
pub struct Dispatcher { /* fields omitted */ }
Expand description
Peer-messages dispatcher.
Implementations
Creates a new dispatcher
pub fn push_message(
&self,
peer_addr: &SocketAddr,
msg: String
) -> Result<(), PushMessageError>
pub fn push_message(
&self,
peer_addr: &SocketAddr,
msg: String
) -> Result<(), PushMessageError>
Pushes message to given peer
Returns true
if the peer is still connnected
Returns current peer count.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Dispatcher
impl Send for Dispatcher
impl Sync for Dispatcher
impl Unpin for Dispatcher
impl !UnwindSafe for Dispatcher
Blanket Implementations
Mutably borrows from an owned value. Read more