rfd 0.17.2

Rusty File Dialog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//
// File Save
//

use crate::{
    backend::{AsyncFileSaveDialogImpl, DialogFutureType},
    file_dialog::FileDialog,
    FileHandle,
};
use std::future::ready;
impl AsyncFileSaveDialogImpl for FileDialog {
    fn save_file_async(self) -> DialogFutureType<Option<FileHandle>> {
        let file = FileHandle::writable(self);
        Box::pin(ready(Some(file)))
    }
}