Function fidl::persist

source ·
pub fn persist<T: Persistable>(body: &T) -> Result<Vec<u8>>
Expand description

Encodes a FIDL object to bytes following RFC-0120. This only works on non-resource structs, tables, and unions. See unpersist for the reverse.