pub struct FileSystem { /* private fields */ }
Implementations
sourceimpl FileSystem
impl FileSystem
pub fn new(fs_obj: Shared<dyn FileSystem>) -> Self
Trait Implementations
sourceimpl IFileSystem for FileSystem
impl IFileSystem for FileSystem
fn create_file(
&mut self,
attribute: FileAttribute,
size: usize,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn delete_file(&mut self, path_buf: InFixedPointerBuffer<Path>) -> Result<()>
fn create_directory(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn delete_directory(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn delete_directory_recursively(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn rename_file(
&mut self,
old_path_buf: InFixedPointerBuffer<Path>,
new_path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn rename_directory(
&mut self,
old_path_buf: InFixedPointerBuffer<Path>,
new_path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn get_entry_type(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<DirectoryEntryType>
fn open_file(
&mut self,
mode: FileOpenMode,
path_buf: InFixedPointerBuffer<Path>
) -> Result<Shared<dyn IFile>>
fn open_directory(
&mut self,
mode: DirectoryOpenMode,
path_buf: InFixedPointerBuffer<Path>
) -> Result<Shared<dyn IDirectory>>
fn commit(&mut self) -> Result<()>
fn get_free_space_size(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<usize>
fn get_total_space_size(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<usize>
fn clean_directory_recursively(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<()>
fn get_file_time_stamp_raw(
&mut self,
path_buf: InFixedPointerBuffer<Path>
) -> Result<FileTimeStampRaw>
fn query_entry(
&mut self,
path_buf: InFixedPointerBuffer<Path>,
query_id: QueryId,
in_buf: InNonSecureMapAliasBuffer<u8>,
out_buf: OutNonSecureMapAliasBuffer<u8>
) -> Result<()>
fn sf_server_impl_create_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_delete_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_create_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_delete_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_delete_directory_recursively(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_rename_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_rename_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_get_entry_type(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_open_file(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_open_directory(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_commit(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_get_free_space_size(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_get_total_space_size(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_clean_directory_recursively(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_get_file_time_stamp_raw(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn sf_server_impl_query_entry(
&mut self,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
fn get_sf_command_metadata_table(&self) -> CommandMetadataTable
sourceimpl IObject for FileSystem
impl IObject for FileSystem
fn get_command_metadata_table(&self) -> CommandMetadataTable
fn call_self_server_command(
&mut self,
command_fn: CommandFn,
protocol: CommandProtocol,
ctx: &mut ServerContext<'_>
) -> Result<()>
impl ISessionObject for FileSystem
Auto Trait Implementations
impl !RefUnwindSafe for FileSystem
impl !Send for FileSystem
impl !Sync for FileSystem
impl Unpin for FileSystem
impl !UnwindSafe for FileSystem
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