fuchsia_fs::file

Function write_fidl_in_namespace

Source
pub async fn write_fidl_in_namespace<T: Persistable>(
    path: &str,
    data: &mut T,
) -> Result<(), WriteNamedError>
Expand description

Write the given FIDL encoded message into a file at path. The path must be an absolute path.

  • If the file already exists, replaces existing contents.
  • If the file does not exist, creates the file.