pub struct FilePicker(/* private fields */);Expand description
A shared handle to the file chooser, from crate::BuildCx::file_picker.
Implementations§
Source§impl FilePicker
impl FilePicker
Sourcepub fn new(provider: impl FilePickerProvider + 'static) -> Self
pub fn new(provider: impl FilePickerProvider + 'static) -> Self
Wraps a provider.
Sourcepub fn pick(
&self,
request: &FileRequest,
done: impl FnOnce(Vec<PickedFile>) + 'static,
)
pub fn pick( &self, request: &FileRequest, done: impl FnOnce(Vec<PickedFile>) + 'static, )
Asks for files; done runs with what was chosen.
Trait Implementations§
Source§impl Clone for FilePicker
impl Clone for FilePicker
Source§fn clone(&self) -> FilePicker
fn clone(&self) -> FilePicker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilePicker
impl Debug for FilePicker
Auto Trait Implementations§
impl !RefUnwindSafe for FilePicker
impl !Send for FilePicker
impl !Sync for FilePicker
impl !UnwindSafe for FilePicker
impl Freeze for FilePicker
impl Unpin for FilePicker
impl UnsafeUnpin for FilePicker
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