Skip to main content

save_data_to_tmp_file

Function save_data_to_tmp_file 

Source
pub(crate) async fn save_data_to_tmp_file(data: Vec<u8>) -> Result<File, Error>
Expand description

Save the given data to a temporary file.

When all strong references to the returned file are destroyed, the file will be destroyed too.