pub struct FileBox { /* private fields */ }Available on Windows only.
Implementations§
Source§impl FileBox
impl FileBox
pub fn new() -> Self
pub fn title(&mut self, title: &str)
pub fn filename(&mut self, filename: &str)
pub fn filters(&mut self, filters: impl IntoIterator<Item = FileFilter>)
pub fn add_filter(&mut self, filter: FileFilter)
pub fn open( self, parent: Option<impl AsWindow>, ) -> Result<impl Future<Output = Result<Option<PathBuf>>> + 'static>
pub fn open_multiple( self, parent: Option<impl AsWindow>, ) -> Result<impl Future<Output = Result<Vec<PathBuf>>> + 'static>
pub fn open_folder( self, parent: Option<impl AsWindow>, ) -> Result<impl Future<Output = Result<Option<PathBuf>>> + 'static>
pub fn save( self, parent: Option<impl AsWindow>, ) -> Result<impl Future<Output = Result<Option<PathBuf>>> + 'static>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileBox
impl RefUnwindSafe for FileBox
impl Send for FileBox
impl Sync for FileBox
impl Unpin for FileBox
impl UnsafeUnpin for FileBox
impl UnwindSafe for FileBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more