Function fidl::standalone_encode_resource
source ยท pub fn standalone_encode_resource<T: Standalone<D>, D: ResourceDialect>(
body: T,
) -> Result<(Vec<u8>, Vec<<D::ProxyChannel as ProxyChannelFor<D>>::HandleDisposition>, WireMetadata)>
Expand description
Encodes a FIDL object to bytes, handles, and wire metadata following RFC-0120. Must be a resource struct, table, or union.