fidl

Function standalone_encode_value

Source
pub fn standalone_encode_value<T: Persistable>(
    body: &T,
) -> Result<(Vec<u8>, WireMetadata)>
where for<'a> T::Borrowed<'a>: Encode<T, NoHandleResourceDialect>,
Expand description

Encodes a FIDL object to bytes and wire metadata following RFC-0120. Must be a non-resource struct, table, or union.