pub async fn read_fidl<T: Persistable>(file: &FileProxy) -> Result<T, ReadError>
Expand description
Read the given FIDL message from binary form from a file open for reading. FIDL structure should be provided at a read time. Incompatible data is populated as per FIDL ABI compatibility guide: https://fuchsia.dev/fuchsia-src/development/languages/fidl/guides/abi-compat