[][src]Function wascc_codec::serialize

pub fn serialize<T>(item: T) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>> where
    T: Serialize

The standard function for serializing codec structs into a format that can be used for message exchange between actor and host. Use of any other function to serialize could result in breaking incompatibilities.