pub struct BclStorageFile { /* private fields */ }Expand description
A file of the local file system.
This is an implementation detail of the platform backends.
Implementations§
Source§impl BclStorageFile
impl BclStorageFile
Sourcepub fn new(file_info: FileSystemInfo) -> Rc<Self>
pub fn new(file_info: FileSystemInfo) -> Rc<Self>
Sourcepub fn file_system_info(&self) -> &FileSystemInfo
pub fn file_system_info(&self) -> &FileSystemInfo
The file-system entry of the file.
Trait Implementations§
Source§impl IDisposable for BclStorageFile
impl IDisposable for BclStorageFile
impl IStorageBookmarkFile for BclStorageFile
Source§impl IStorageBookmarkItem for BclStorageFile
impl IStorageBookmarkItem for BclStorageFile
Source§fn release_bookmark_async(&self) -> LocalBoxFuture<()>
fn release_bookmark_async(&self) -> LocalBoxFuture<()>
Releases the bookmark the item was opened from.
Source§impl IStorageFile for BclStorageFile
impl IStorageFile for BclStorageFile
Source§fn open_read_async(&self) -> LocalBoxFuture<Result<Box<dyn Read>>>
fn open_read_async(&self) -> LocalBoxFuture<Result<Box<dyn Read>>>
Opens a stream for read access. Read more
Source§fn open_write_async(&self) -> LocalBoxFuture<Result<Box<dyn Write>>>
fn open_write_async(&self) -> LocalBoxFuture<Result<Box<dyn Write>>>
Opens a stream for writing to the file. Read more
Source§impl IStorageItem for BclStorageFile
impl IStorageItem for BclStorageFile
Source§fn name(&self) -> String
fn name(&self) -> String
The name of the item including the file name extension if there is
one.
Source§fn get_basic_properties_async(&self) -> LocalBoxFuture<StorageItemProperties>
fn get_basic_properties_async(&self) -> LocalBoxFuture<StorageItemProperties>
Gets the basic properties of the current item.
Source§fn can_bookmark(&self) -> bool
fn can_bookmark(&self) -> bool
Returns
true if it is possible to bookmark this file or folder for
future access.Source§fn save_bookmark_async(&self) -> LocalBoxFuture<Option<String>>
fn save_bookmark_async(&self) -> LocalBoxFuture<Option<String>>
Saves a bookmark for this file or folder. Read more
Source§fn get_parent_async(&self) -> LocalBoxFuture<Option<Rc<dyn IStorageFolder>>>
fn get_parent_async(&self) -> LocalBoxFuture<Option<Rc<dyn IStorageFolder>>>
Gets the parent folder of the current storage item.
Source§fn delete_async(&self) -> LocalBoxFuture<Result<()>>
fn delete_async(&self) -> LocalBoxFuture<Result<()>>
Deletes the current storage item and its contents.
Source§fn move_async(
&self,
destination: Rc<dyn IStorageFolder>,
) -> LocalBoxFuture<Result<Option<Rc<dyn IStorageItem>>>>
fn move_async( &self, destination: Rc<dyn IStorageFolder>, ) -> LocalBoxFuture<Result<Option<Rc<dyn IStorageItem>>>>
Moves the current storage item and its contents to an
IStorageFolder. Read moreSource§fn as_storage_file(self: Rc<Self>) -> Option<Rc<dyn IStorageFile>>
fn as_storage_file(self: Rc<Self>) -> Option<Rc<dyn IStorageFile>>
The item as a file, if it is one (C#
item as IStorageFile).Source§fn as_storage_folder(self: Rc<Self>) -> Option<Rc<dyn IStorageFolder>>
fn as_storage_folder(self: Rc<Self>) -> Option<Rc<dyn IStorageFolder>>
The item as a folder, if it is one (C#
item as IStorageFolder).Source§fn as_storage_item_with_file_system_info(
&self,
) -> Option<&dyn IStorageItemWithFileSystemInfo>
fn as_storage_item_with_file_system_info( &self, ) -> Option<&dyn IStorageItemWithFileSystemInfo>
The item as one that is backed by an entry of the local file
system, if it is one.
Source§impl IStorageItemWithFileSystemInfo for BclStorageFile
impl IStorageItemWithFileSystemInfo for BclStorageFile
Source§fn file_system_info_full_name(&self) -> String
fn file_system_info_full_name(&self) -> String
The full path of the file-system entry (C#
FileSystemInfo.FullName).Auto Trait Implementations§
impl Freeze for BclStorageFile
impl RefUnwindSafe for BclStorageFile
impl Send for BclStorageFile
impl Sync for BclStorageFile
impl Unpin for BclStorageFile
impl UnsafeUnpin for BclStorageFile
impl UnwindSafe for BclStorageFile
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 more