pub enum PickedFolder {
Path(PathBuf),
Handle(Box<dyn FolderHandle>),
}Expand description
A folder the user picked, as the system gives it.
Variants§
Path(PathBuf)
macOS, iOS, Windows and Linux: a path the app reads and writes in as any folder.
Handle(Box<dyn FolderHandle>)
The web’s directory handle, and Android’s document tree.
Implementations§
Source§impl PickedFolder
impl PickedFolder
Sourcepub fn url(&self) -> Option<String>
pub fn url(&self) -> Option<String>
The URL the system names the folder by, where it has one: a file: URL for a path,
absolute and percent-encoded; Android’s content: URI of the folder in the tree the user
picked, from which an embedder may tell where on the device it is. The web’s directory
handle has none.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PickedFolder
impl !Send for PickedFolder
impl !Sync for PickedFolder
impl !UnwindSafe for PickedFolder
impl Forget for PickedFolder
impl Freeze for PickedFolderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const dyn FolderHandle is !null: Freeze,
PhantomData<dyn FolderHandle>: Freeze,
impl Move for PickedFolder
impl Unpin for PickedFolder
impl UnsafeUnpin for PickedFolderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn FolderHandle is !null: UnsafeUnpin,
PhantomData<dyn FolderHandle>: UnsafeUnpin,
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