Struct postgres_binary_copy::BinaryCopyWriter [] [src]

pub struct BinaryCopyWriter<W> {
    // some fields omitted
}

A ReadWithInfo implementation that processes binary-formatted input for use with COPY ... TO STDOUT (FORMAT binary) statements.

Methods

impl<W> BinaryCopyWriter<W> where W: WriteValue
[src]

fn new(value_writer: W) -> BinaryCopyWriter<W>

Creates a new BinaryCopyWriter.

The writer will forward SQL values to the specified WriteValue.

Trait Implementations

impl<W> Debug for BinaryCopyWriter<W> where W: Debug
[src]

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

Formats the value using the given formatter.

impl<W> WriteWithInfo for BinaryCopyWriter<W> where W: WriteValue
[src]

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

Like Write::write.