[−][src]Function safe_core::nfs::file_helper::write
pub async fn write<C: Client + 'static>(
client: C,
file: File,
mode: Mode,
encryption_key: Option<Key>
) -> Result<Writer<C>, NfsError>
Helper function to update content of a file in a directory. A Writer
object is returned, through which the data for the file can be written to
the network. The file is actually saved in the directory listing only after
writer.close()
is invoked.