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§

source

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

Connect to underlying IPC and return a readable and writeable stream

source

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

Set timeout for all produced streams.

Implementors§