pub fn encode_response<T: Serialize + ?Sized>(
value: &T,
id: u64,
limits: Limits,
) -> Vec<u8> ⓘExpand description
Encode the native response frame within its allowances, trapping on failure.
A trap (rather than a rejection or error reply) preserves synchronous mutation rollback. Earlier async transactions remain committed; see the module docs.