Function rmp::encode::write_bin [] [src]

pub fn write_bin<W: Write>(wr: &mut W,
                           data: &[u8])
                           -> Result<(), ValueWriteError>

Encodes and attempts to write the most efficient binary implementation to the given Write.

Errors

This function will return ValueWriteError on any I/O error occurred while writing either the marker or the data, except the EINTR, which is handled internally.