[][src]Trait parsec_client::core::ipc_handler::Connect

pub trait Connect {
    fn connect(&self) -> Result<Box<dyn ReadWrite>>;
fn set_timeout(&mut self, timeout: Option<Duration>); }

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

fn connect(&self) -> Result<Box<dyn ReadWrite>>

Connect to underlying IPC and return a readable and writeable stream

fn set_timeout(&mut self, timeout: Option<Duration>)

Set timeout for all produced streams.

Loading content...

Implementors

impl Connect for Handler[src]

Loading content...