Struct postgres::io::Stream [] [src]

pub struct Stream(_);

A connection to the Postgres server.

It implements Read, Write and StreamWrapper, as well as AsRawFd on Unix platforms and AsRawSocket on Windows platforms.

Trait Implementations

impl Debug for Stream
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Read for Stream
[src]

fn read(&mut self, buf: &mut [u8]) -> Result<usize>

fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
1.0.0

fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0

fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0

fn by_ref(&mut self) -> &mut Self
1.0.0

fn bytes(self) -> Bytes<Self>
1.0.0

fn chars(self) -> Chars<Self>

fn chain<R>(self, next: R) -> Chain<Self, R> where R: Read
1.0.0

fn take(self, limit: u64) -> Take<Self>
1.0.0

impl Write for Stream
[src]

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0

fn by_ref(&mut self) -> &mut Self
1.0.0

impl StreamWrapper for Stream
[src]

fn get_ref(&self) -> &Stream

fn get_mut(&mut self) -> &mut Stream

impl AsRawFd for Stream
[src]

fn as_raw_fd(&self) -> RawFd