pub struct FileDialog { /* private fields */ }Expand description
A non-modal “open file” dialog whose selection arrives on a stream.
Implementations§
Source§impl FileDialog
impl FileDialog
Sourcepub fn open(window: &Window, title: impl Into<String>) -> Self
pub fn open(window: &Window, title: impl Into<String>) -> Self
Create an open-file dialog parented to window.
Sourcepub fn directory(window: &Window, title: impl Into<String>) -> Self
pub fn directory(window: &Window, title: impl Into<String>) -> Self
Create a native folder-selection dialog parented to window.
Sourcepub fn result(&self) -> EventStream<Option<String>>
pub fn result(&self) -> EventStream<Option<String>>
A stream that emits the selected path (or None if nothing was
chosen) exactly once.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FileDialog
impl !Send for FileDialog
impl !Sync for FileDialog
impl !UnwindSafe for FileDialog
impl Freeze for FileDialog
impl Unpin for FileDialog
impl UnsafeUnpin for FileDialog
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