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>[src]
pub fn push_message(
&self,
peer_addr: &SocketAddr,
msg: String
) -> Result<(), PushMessageError>[src]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 Dispatcherimpl Send for Dispatcherimpl Sync for Dispatcherimpl Unpin for Dispatcherimpl !UnwindSafe for DispatcherBlanket Implementations
Mutably borrows from an owned value. Read more