Trait parsec_client::core::ipc_handler::Connect
source · pub trait Connect {
// Required methods
fn connect(&self) -> Result<Box<dyn ReadWrite>>;
fn set_timeout(&mut self, timeout: Option<Duration>);
}
Expand description
Trait that must be implemented by any IPC client
The trait is used by the request handler for obtaining a stream to the service.
Required Methods§
sourcefn connect(&self) -> Result<Box<dyn ReadWrite>>
fn connect(&self) -> Result<Box<dyn ReadWrite>>
Connect to underlying IPC and return a readable and writeable stream
sourcefn set_timeout(&mut self, timeout: Option<Duration>)
fn set_timeout(&mut self, timeout: Option<Duration>)
Set timeout for all produced streams.