Function kitsune_p2p_types::codec::rmp_encode
source · pub fn rmp_encode<W, S>(write: &mut W, item: S) -> Result<(), Error>where
W: Write,
S: Serialize,
Expand description
Encode a serde::Serialize item as message-pack data to given writer. You may wish to first wrap your writer in a BufWriter.