Trait dokany::FileSystem
source · pub trait FileSystem: Send + Sync + 'static {
// Provided methods
fn create_file(
&self,
_file_name: &[u16],
_desired_access: AccessMask,
_is_dir: &mut bool
) -> NTSTATUS { ... }
fn find_files(
&self,
_file_name: &[u16],
_fill_find_data: FillFindData<'_>
) -> NTSTATUS { ... }
fn get_volume_information(
&self,
_volume_name: WriteWideCStringCell<'_>,
_volume_serial_number: &mut u32,
_maximum_component_length: &mut u32,
_file_system_flags: &mut FileSystemFlags,
_file_system_name: WriteWideCStringCell<'_>
) -> NTSTATUS { ... }
fn mounted(&self, _mount_point: &[u16]) -> NTSTATUS { ... }
fn unmounted(&self) -> NTSTATUS { ... }
}
Expand description
The trait a type must implement to serve as a file system
Provided Methods§
sourcefn create_file(
&self,
_file_name: &[u16],
_desired_access: AccessMask,
_is_dir: &mut bool
) -> NTSTATUS
fn create_file( &self, _file_name: &[u16], _desired_access: AccessMask, _is_dir: &mut bool ) -> NTSTATUS
Called for opening files and directories
sourcefn find_files(
&self,
_file_name: &[u16],
_fill_find_data: FillFindData<'_>
) -> NTSTATUS
fn find_files( &self, _file_name: &[u16], _fill_find_data: FillFindData<'_> ) -> NTSTATUS
Called to get a function that returns entries in a directory
sourcefn get_volume_information(
&self,
_volume_name: WriteWideCStringCell<'_>,
_volume_serial_number: &mut u32,
_maximum_component_length: &mut u32,
_file_system_flags: &mut FileSystemFlags,
_file_system_name: WriteWideCStringCell<'_>
) -> NTSTATUS
fn get_volume_information( &self, _volume_name: WriteWideCStringCell<'_>, _volume_serial_number: &mut u32, _maximum_component_length: &mut u32, _file_system_flags: &mut FileSystemFlags, _file_system_name: WriteWideCStringCell<'_> ) -> NTSTATUS
Called for calls to GetVolumeInformation