Trait rmp::encode::RmpWrite [−][src]
pub trait RmpWrite: Sealed {
type Error: RmpWriteErr;
fn write_bytes(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
fn write_u8(&mut self, val: u8) -> Result<(), Self::Error> { ... }
}
Expand description
A type that rmp
supports writing into.
The methods of this trait should be considered an implementation detail (for now). It is currently sealed (can not be implemented by the user).
See also [std::uo::Write] and byteorder::WriteBytesExt
Its primary implementations are std::io::Write and ByteBuf.
Associated Types
type Error: RmpWriteErr
Required methods
Write a slice of bytes to the underlying stream
This will either write all the bytes or return an error. See also std::io::Write::write_all