fuchsia_fs::file

Function read_in_namespace_to_fidl

Source
pub async fn read_in_namespace_to_fidl<T: Persistable>(
    path: &str,
) -> Result<T, ReadNamedError>
Expand description

Read the given FIDL message from binary file at path in the current namespace. The path must be an absolute path. 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