Struct xdr_codec::record::XdrRecordWriter [] [src]

pub struct XdrRecordWriter<W: Write> { /* fields omitted */ }

Write records into a bytestream.

Flushes the current buffer as end of record when destroyed.

Methods

impl<W: Write> XdrRecordWriter<W>
[src]

Create a new XdrRecordWriter wrapped around a Write implementation, using a default buffer size (64k).

Create an instance with a specific buffer size. Panics if the size is zero.

Flush the current buffer. If eor is true, the end of record marker is set.

Trait Implementations

impl<W: Write> Drop for XdrRecordWriter<W>
[src]

A method called when the value goes out of scope. Read more

impl<W: Write> Write for XdrRecordWriter<W>
[src]

Write a buffer into this object, returning how many bytes were written. Read more

Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more

Attempts to write an entire buffer into this write. Read more

Writes a formatted string into this writer, returning any error encountered. Read more

Creates a "by reference" adaptor for this instance of Write. Read more