pub struct FileDialogSender { /* private fields */ }Expand description
A handle a worker thread asks for dialogs through.
Send, Copy and free to make: the queue it feeds belongs to the Host. The callback is
stored by the Host and run on the UI thread, so it has to be Send.
Implementations§
Source§impl FileDialogSender
impl FileDialogSender
pub const fn new() -> Self
Sourcepub fn show(
&self,
dialog: FileDialog,
on_result: impl FnOnce(FileDialogResult) + Send + 'static,
)
pub fn show( &self, dialog: FileDialog, on_result: impl FnOnce(FileDialogResult) + Send + 'static, )
Asks for dialog and calls on_result once on the UI thread when it ends.
Trait Implementations§
Source§impl Clone for FileDialogSender
impl Clone for FileDialogSender
impl Copy for FileDialogSender
Source§impl Debug for FileDialogSender
impl Debug for FileDialogSender
Source§impl Default for FileDialogSender
impl Default for FileDialogSender
impl Eq for FileDialogSender
Source§impl PartialEq for FileDialogSender
impl PartialEq for FileDialogSender
impl StructuralPartialEq for FileDialogSender
Auto Trait Implementations§
impl Forget for FileDialogSender
impl Freeze for FileDialogSender
impl Move for FileDialogSender
impl RefUnwindSafe for FileDialogSender
impl Send for FileDialogSender
impl Sync for FileDialogSender
impl Unpin for FileDialogSender
impl UnsafeUnpin for FileDialogSender
impl UnwindSafe for FileDialogSender
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