Struct ethcore_ipc_nano::Worker
[−]
[src]
pub struct Worker<S: ?Sized> where S: IpcInterface { /* fields omitted */ }
Generic worker to handle service (binded) sockets
Methods
impl<S: ?Sized> Worker<S> where S: IpcInterface
[src]
fn new(service: &Arc<S>) -> Worker<S>
New worker over specified service
fn poll(&mut self)
Polls all sockets, reads and dispatches method invocations
fn add_duplex(&mut self, addr: &str) -> Result<(), SocketError>
Add exclusive socket for paired client Only one connection over this address is allowed
fn add_reqrep(&mut self, addr: &str) -> Result<(), SocketError>
Add generic socket for request-reply style communications with multiple clients