pub struct ManagedStorageProvider { /* private fields */ }Expand description
The storage provider that shows the managed file chooser: in a window, or in a popup over the content of a top level that has no windows.
Internal upstream; public here for the platform backends.
The top level is held weakly: the provider is usually the storage provider of that top level, which keeps it.
Implementations§
Trait Implementations§
Source§impl BclStorageProvider for ManagedStorageProvider
impl BclStorageProvider for ManagedStorageProvider
Source§fn open_file_picker_with_result_async(
&self,
options: FilePickerOpenOptions,
) -> LocalBoxFuture<Result<OpenFilePickerResult>>
fn open_file_picker_with_result_async( &self, options: FilePickerOpenOptions, ) -> LocalBoxFuture<Result<OpenFilePickerResult>>
Source§fn save_file_picker_with_result_async(
&self,
options: FilePickerSaveOptions,
) -> LocalBoxFuture<Result<SaveFilePickerResult>>
fn save_file_picker_with_result_async( &self, options: FilePickerSaveOptions, ) -> LocalBoxFuture<Result<SaveFilePickerResult>>
Source§fn can_pick_folder(&self) -> bool
fn can_pick_folder(&self) -> bool
Source§fn open_folder_picker_async(
&self,
options: FolderPickerOpenOptions,
) -> LocalBoxFuture<Result<Vec<Rc<dyn IStorageFolder>>>>
fn open_folder_picker_async( &self, options: FolderPickerOpenOptions, ) -> LocalBoxFuture<Result<Vec<Rc<dyn IStorageFolder>>>>
Source§fn open_file_bookmark_async(
&self,
bookmark: &str,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFile>>>>>
fn open_file_bookmark_async( &self, bookmark: &str, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFile>>>>>
See
IStorageProvider::open_file_bookmark_async; the file the
bookmark names, if it exists.Source§fn open_folder_bookmark_async(
&self,
bookmark: &str,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFolder>>>>>
fn open_folder_bookmark_async( &self, bookmark: &str, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFolder>>>>>
See
IStorageProvider::open_folder_bookmark_async; the folder
the bookmark names, if it exists.Source§fn try_get_file_from_path_async(
&self,
file_path: &Uri,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFile>>>>>
fn try_get_file_from_path_async( &self, file_path: &Uri, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFile>>>>>
See
IStorageProvider::try_get_file_from_path_async; the file at
the local path of an absolute URI, if it exists.Source§fn try_get_folder_from_path_async(
&self,
folder_path: &Uri,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
fn try_get_folder_from_path_async( &self, folder_path: &Uri, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
See
IStorageProvider::try_get_folder_from_path_async; the
folder at the local path of an absolute URI, if it exists.Source§fn try_get_well_known_folder_async(
&self,
well_known_folder: WellKnownFolder,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
fn try_get_well_known_folder_async( &self, well_known_folder: WellKnownFolder, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedStorageProvider
impl !Send for ManagedStorageProvider
impl !Sync for ManagedStorageProvider
impl !UnwindSafe for ManagedStorageProvider
impl Freeze for ManagedStorageProvider
impl Unpin for ManagedStorageProvider
impl UnsafeUnpin for ManagedStorageProvider
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IStorageProvider for Twhere
T: BclStorageProvider,
impl<T> IStorageProvider for Twhere
T: BclStorageProvider,
Source§fn can_open(&self) -> bool
fn can_open(&self) -> bool
Returns
true if it is possible to open a file picker on the
current platform.Source§fn open_file_picker_async(
&self,
options: FilePickerOpenOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Rc<dyn IStorageFile>>, Error>>>>
fn open_file_picker_async( &self, options: FilePickerOpenOptions, ) -> Pin<Box<dyn Future<Output = Result<Vec<Rc<dyn IStorageFile>>, Error>>>>
Opens a file picker dialog. Read more
Source§fn open_file_picker_with_result_async(
&self,
options: FilePickerOpenOptions,
) -> Pin<Box<dyn Future<Output = Result<OpenFilePickerResult, Error>>>>
fn open_file_picker_with_result_async( &self, options: FilePickerOpenOptions, ) -> Pin<Box<dyn Future<Output = Result<OpenFilePickerResult, Error>>>>
Opens a file picker dialog and returns the selected files along with
additional information. Read more
Source§fn can_save(&self) -> bool
fn can_save(&self) -> bool
Returns
true if it is possible to open a save file picker on the
current platform.Source§fn save_file_picker_async(
&self,
options: FilePickerSaveOptions,
) -> Pin<Box<dyn Future<Output = Result<Option<Rc<dyn IStorageFile>>, Error>>>>
fn save_file_picker_async( &self, options: FilePickerSaveOptions, ) -> Pin<Box<dyn Future<Output = Result<Option<Rc<dyn IStorageFile>>, Error>>>>
Opens a save file picker dialog. Read more
Source§fn save_file_picker_with_result_async(
&self,
options: FilePickerSaveOptions,
) -> Pin<Box<dyn Future<Output = Result<SaveFilePickerResult, Error>>>>
fn save_file_picker_with_result_async( &self, options: FilePickerSaveOptions, ) -> Pin<Box<dyn Future<Output = Result<SaveFilePickerResult, Error>>>>
Opens a save file picker dialog and returns the selected file along
with additional information. Read more
Source§fn can_pick_folder(&self) -> bool
fn can_pick_folder(&self) -> bool
Returns
true if it is possible to open a folder picker on the
current platform.Source§fn open_folder_picker_async(
&self,
options: FolderPickerOpenOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Rc<dyn IStorageFolder>>, Error>>>>
fn open_folder_picker_async( &self, options: FolderPickerOpenOptions, ) -> Pin<Box<dyn Future<Output = Result<Vec<Rc<dyn IStorageFolder>>, Error>>>>
Opens a folder picker dialog. Read more
Source§fn open_file_bookmark_async(
&self,
bookmark: &str,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFile>>>>>
fn open_file_bookmark_async( &self, bookmark: &str, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFile>>>>>
Opens an
IStorageBookmarkFile from the bookmark ID. Read moreSource§fn open_folder_bookmark_async(
&self,
bookmark: &str,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFolder>>>>>
fn open_folder_bookmark_async( &self, bookmark: &str, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageBookmarkFolder>>>>>
Opens an
IStorageBookmarkFolder from the bookmark ID. Read moreSource§fn try_get_file_from_path_async(
&self,
file_path: &Uri,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFile>>>>>
fn try_get_file_from_path_async( &self, file_path: &Uri, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFile>>>>>
Attempts to read a file from the file-system by its path. Read more
Source§fn try_get_folder_from_path_async(
&self,
folder_path: &Uri,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
fn try_get_folder_from_path_async( &self, folder_path: &Uri, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
Attempts to read a folder from the file-system by its path. Read more
Source§fn try_get_well_known_folder_async(
&self,
well_known_folder: WellKnownFolder,
) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
fn try_get_well_known_folder_async( &self, well_known_folder: WellKnownFolder, ) -> Pin<Box<dyn Future<Output = Option<Rc<dyn IStorageFolder>>>>>
Attempts to read a folder from the file-system by its well-known
folder identifier.
Source§fn is_file_system_backed(&self) -> bool
fn is_file_system_backed(&self) -> bool
Whether the provider is the file-system backed one
(C#
provider is BclStorageProvider). Read more