Function rmp::encode::write_str [] [src]

pub fn write_str<W: Write>(wr: &mut W,
                           data: &str)
                           -> Result<(), ValueWriteError>

Encodes and attempts to write the most efficient string binary representation 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.