Struct nx::fs::ProxyFileSystem
source · [−]pub struct ProxyFileSystem { /* private fields */ }
Implementations
sourceimpl ProxyFileSystem
impl ProxyFileSystem
pub fn new(fs_obj: Shared<dyn IFileSystem>) -> Self
Trait Implementations
sourceimpl FileSystem for ProxyFileSystem
impl FileSystem for ProxyFileSystem
fn create_file(
&mut self,
path: String,
attribute: FileAttribute,
size: usize
) -> Result<()>
fn delete_file(&mut self, path: String) -> Result<()>
fn create_directory(&mut self, path: String) -> Result<()>
fn delete_directory(&mut self, path: String) -> Result<()>
fn delete_directory_recursively(&mut self, path: String) -> Result<()>
fn get_entry_type(&mut self, path: String) -> Result<DirectoryEntryType>
fn rename_file(&mut self, old_path: String, new_path: String) -> Result<()>
fn rename_directory(&mut self, old_path: String, new_path: String) -> Result<()>
fn open_file(
&mut self,
path: String,
mode: FileOpenMode
) -> Result<Shared<dyn File>>
fn open_directory(
&mut self,
path: String,
mode: DirectoryOpenMode
) -> Result<Shared<dyn Directory>>
fn commit(&mut self) -> Result<()>
fn get_free_space_size(&mut self, path: String) -> Result<usize>
fn get_total_space_size(&mut self, path: String) -> Result<usize>
fn clean_directory_recursively(&mut self, path: String) -> Result<()>
fn get_file_time_stamp_raw(&mut self, path: String) -> Result<FileTimeStampRaw>
fn query_entry(
&mut self,
path: String,
query_id: QueryId,
in_buf: *const u8,
in_buf_size: usize,
out_buf: *mut u8,
out_buf_size: usize
) -> Result<()>
Auto Trait Implementations
impl !RefUnwindSafe for ProxyFileSystem
impl !Send for ProxyFileSystem
impl !Sync for ProxyFileSystem
impl Unpin for ProxyFileSystem
impl !UnwindSafe for ProxyFileSystem
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more