[−][src]Trait parsec_service::front::listener::Listen
IPC front manager interface
Interface defining the functionality that any IPC front manager has to expose to Parsec for normal operation.
Required methods
fn set_timeout(&mut self, duration: Duration)
Set the timeout on read and write calls on any stream returned by this listener.
fn accept(&self) -> Option<Connection>
Non-blocking call that gets the next client connection and returns a stream
(a Read and Write trait object). Requests are read from the stream and responses are written
to it. Streams returned by this method should have a timeout period as set by the
set_timeout method.
If no connections are present, return None.
If there are any errors in establishing the connection other than the missing
initialization, the implementation should log them and return None.
Send is needed because the stream is moved to a thread.
Panics
If the listener has not been initialised before, with the init method.