Struct gjio::SocketStream [] [src]

pub struct SocketStream { /* fields omitted */ }

A connected socket that allows reading and writing.

Trait Implementations

impl Clone for SocketStream
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl AsyncRead for SocketStream
[src]

Attempts to read buf.len() bytes from the stream, writing them into buf. Returns the modified buf,and the number of bytes actually read. Returns as soon as min_bytes are read or EOF is encountered. Read more

Like try_read(), but returns an error if EOF is encountered before min_bytes can be read. Read more

impl AsyncWrite for SocketStream
[src]

Attempts to write all buf.len() bytes from buf into the stream. Returns buf once all of the bytes have been written. Read more