Trait faktory::StreamConnector [] [src]

pub trait StreamConnector: Sized + Read + Write + 'static {
    type Addr: FromUrl;
    fn connect(addr: Self::Addr) -> Result<Self>;
}

A stream that can be established using a url.

Associated Types

The address used to connect this kind of stream.

Required Methods

Establish a new stream using the given addr.

Implementations on Foreign Types

impl StreamConnector for TcpStream
[src]

[src]

Implementors