pub fn encode<T: Serialize + ?Sized>(value: &T) -> Result<Vec<u8>, &'static str>Expand description
Encode an envelope for the boundary.
Fails only if a type cannot be represented (a map with non-string keys,
say) — no envelope here can, and the Result is here so the day one
could, it says so instead of panicking inside a guest.