[][src]Type Definition sonr::net::tcp::ReactiveTcpStream

type ReactiveTcpStream = Stream<TcpStream>;

A reactive tcp stream. See Stream.

Methods

impl ReactiveTcpStream[src]

pub fn connect(addr: &SocketAddr) -> Result<Self>[src]

Create a new reactive tcp stream from a &SocketAddr

Trait Implementations

impl StreamRef for ReactiveTcpStream[src]

type Evented = TcpStream

The Evented type for the Stream

fn token(&self) -> Token[src]

Stream token