pub fn encode_into<T: Serialize + ?Sized>(
value: &T,
limits: Limits,
bytes: &mut Vec<u8>,
) -> Result<(), Error>Expand description
Encode into reusable caller storage. Previous contents are cleared, including on error. Capacity may be lost on serialization failure; successful calls retain it. Retain a separate immutable frame when bytes must survive subsequent calls for retries.