Function holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::dependencies::hc_seed_bundle::dependencies::rmp_serde::encode::write
pub fn write<W, T>(wr: &mut W, val: &T) -> Result<(), Error>where
W: Write + ?Sized,
T: Serialize + ?Sized,
Expand description
Serialize the given data structure as MessagePack into the I/O stream. This function uses compact representation - structures as arrays
Serialization can fail if T
’s implementation of Serialize
decides to fail.