pub struct DummyFileSystem;Trait Implementations§
Source§impl AttributeOperations for DummyFileSystem
impl AttributeOperations for DummyFileSystem
Source§fn get_attributes(
&self,
_context: &mut Context,
_attributes: &mut Attributes,
) -> Result<()>
fn get_attributes( &self, _context: &mut Context, _attributes: &mut Attributes, ) -> Result<()>
Populate the requested attributes for the open file or directory. Read more
Source§fn set_attributes(
&self,
_context: &mut Context,
_attributes: &Attributes,
) -> Result<()>
fn set_attributes( &self, _context: &mut Context, _attributes: &Attributes, ) -> Result<()>
Change the fields selected by
attributes.get_mask(). Read moreSource§impl BaseOperations for DummyFileSystem
impl BaseOperations for DummyFileSystem
fn read( &self, _context: &mut Context, _cx: &mut Context<'_>, _buffer: &mut [u8], _absolute_position: Size, ) -> Poll<Result<usize>>
fn write( &self, _context: &mut Context, _cx: &mut Context<'_>, _buffer: &[u8], _absolute_position: Size, ) -> Poll<Result<usize>>
fn clone_context(&self, _context: &Context) -> Result<Context>
fn flush( &self, _context: &mut Context, _cx: &mut TaskContext<'_>, ) -> Poll<Result<()>>
fn control( &self, _context: &mut Context, _cx: &mut TaskContext<'_>, _command: ControlCommandIdentifier, _input: &AnyByLayout, _output: &mut AnyByLayout, ) -> Poll<Result<()>>
fn read_until( &self, context: &mut Context, cx: &mut TaskContext<'_>, buffer: &mut [u8], absolute_position: Size, delimiter: &[u8], ) -> Poll<Result<usize>>
fn write_pattern( &self, context: &mut Context, cx: &mut TaskContext<'_>, pattern: &[u8], count: usize, absolute_position: Size, ) -> Poll<Result<usize>>
fn write_vectored( &self, context: &mut Context, cx: &mut TaskContext<'_>, buffers: &[&[u8]], absolute_position: Size, ) -> Poll<Result<usize>>
fn read_sync( &self, context: &mut Context, buffer: &mut [u8], absolute_position: Size, ) -> Result<usize>
fn write_sync( &self, context: &mut Context, buffer: &[u8], absolute_position: Size, ) -> Result<usize>
fn flush_sync(&self, context: &mut Context) -> Result<()>
fn control_sync( &self, context: &mut Context, command: ControlCommandIdentifier, input: &AnyByLayout, output: &mut AnyByLayout, ) -> Result<()>
fn read_until_sync( &self, context: &mut Context, buffer: &mut [u8], absolute_position: Size, delimiter: &[u8], ) -> Result<usize>
fn write_pattern_sync( &self, context: &mut Context, pattern: &[u8], count: usize, absolute_position: Size, ) -> Result<usize>
fn write_vectored_sync( &self, context: &mut Context, buffers: &[&[u8]], absolute_position: Size, ) -> Result<usize>
Source§fn cancel_operation(&self, _context: &mut Context, _operation: Operation)
fn cancel_operation(&self, _context: &mut Context, _operation: Operation)
Detach this opening’s registration after completion, error or cancellation.
This hook is idempotent and must not consume data or change the cursor.
Wake and drop retired wakers outside device locks.
fn open(&self, _context: &mut Context) -> Result<()>
fn close(&self, _context: &mut Context) -> Result<()>
fn set_position( &self, _context: &mut Context, current: Size, position: &Position, ) -> Result<Size>
Source§impl DirectoryOperations for DummyFileSystem
impl DirectoryOperations for DummyFileSystem
fn read(&self, _context: &mut Context) -> Result<Option<Entry>>
fn set_position(&self, _context: &mut Context, _position: Size) -> Result<()>
fn get_position(&self, _context: &mut Context) -> Result<Size>
fn rewind(&self, _context: &mut Context) -> Result<()>
fn close(&self, _context: &mut Context) -> Result<()>
Source§impl FileSystemOperations for DummyFileSystem
impl FileSystemOperations for DummyFileSystem
fn lookup_directory(&self, _context: &mut Context, _path: &Path) -> Result<()>
fn lookup_file( &self, _context: &mut Context, _path: &Path, _flags: Flags, ) -> Result<()>
Source§fn create_directory(&self, _path: &Path, _attributes: &Attributes) -> Result<()>
fn create_directory(&self, _path: &Path, _attributes: &Attributes) -> Result<()>
Create a directory at
path, persisting attributes with the new
entry in the same commit as the entry creation where the backend can. Read moreSource§fn create_file(&self, _path: &Path, _attributes: &Attributes) -> Result<()>
fn create_file(&self, _path: &Path, _attributes: &Attributes) -> Result<()>
Create a regular file at
path, persisting attributes with the new
entry in the same commit as the entry creation where the backend can. Read moreSource§fn remove(&self, _path: &Path) -> Result<()>
fn remove(&self, _path: &Path) -> Result<()>
Remove a file or directory from the file system. Read more
Source§fn rename(&self, _source: &Path, _destination: &Path) -> Result<()>
fn rename(&self, _source: &Path, _destination: &Path) -> Result<()>
Rename or move a file or directory. Read more
Source§fn get_attributes(
&self,
_path: &Path,
_attributes: &mut Attributes,
) -> Result<()>
fn get_attributes( &self, _path: &Path, _attributes: &mut Attributes, ) -> Result<()>
Populate the requested attributes for a path. Read more
Source§fn set_attributes(&self, _path: &Path, _attributes: &Attributes) -> Result<()>
fn set_attributes(&self, _path: &Path, _attributes: &Attributes) -> Result<()>
Change the fields selected by
attributes.get_mask() for a path. Read moreSource§fn supports_confined_namespace(&self) -> bool
fn supports_confined_namespace(&self) -> bool
Return whether this backend enforces confined, non-following namespace
semantics for operations beneath a directory root. Read more
Source§fn supports_directory_entry_operations(&self) -> bool
fn supports_directory_entry_operations(&self) -> bool
Source§fn lookup_directory_entry(
&self,
_parent: &Context,
_name: &str,
_context: &mut Context,
) -> Result<()>
fn lookup_directory_entry( &self, _parent: &Context, _name: &str, _context: &mut Context, ) -> Result<()>
Open a child directory entry
name inside the opened parent
directory into context, without following symbolic links. Read moreSource§fn lookup_file_entry(
&self,
_parent: &Context,
_name: &str,
_context: &mut Context,
_flags: Flags,
) -> Result<()>
fn lookup_file_entry( &self, _parent: &Context, _name: &str, _context: &mut Context, _flags: Flags, ) -> Result<()>
Open a child regular file
name inside the opened parent directory
into context, without following symbolic links.Source§fn create_directory_entry(
&self,
_parent: &Context,
_name: &str,
_attributes: &Attributes,
) -> Result<()>
fn create_directory_entry( &self, _parent: &Context, _name: &str, _attributes: &Attributes, ) -> Result<()>
Create a child directory
name inside the opened parent directory,
persisting attributes with the new entry where the backend can.Source§fn create_file_entry(
&self,
_parent: &Context,
_name: &str,
_attributes: &Attributes,
) -> Result<()>
fn create_file_entry( &self, _parent: &Context, _name: &str, _attributes: &Attributes, ) -> Result<()>
Create a child regular file
name inside the opened parent directory,
persisting attributes with the new entry where the backend can.Source§fn remove_entry(&self, _parent: &Context, _name: &str) -> Result<()>
fn remove_entry(&self, _parent: &Context, _name: &str) -> Result<()>
Remove a child entry
name inside the opened parent directory
without following symbolic links.Source§fn rename_entry(
&self,
_source_parent: &Context,
_source_name: &str,
_destination_parent: &Context,
_destination_name: &str,
) -> Result<()>
fn rename_entry( &self, _source_parent: &Context, _source_name: &str, _destination_parent: &Context, _destination_name: &str, ) -> Result<()>
Rename
source_name inside source_parent to destination_name inside
destination_parent without following symbolic links.Source§fn link_entry(
&self,
_existing_parent: &Context,
_existing_name: &str,
_new_parent: &Context,
_new_name: &str,
) -> Result<()>
fn link_entry( &self, _existing_parent: &Context, _existing_name: &str, _new_parent: &Context, _new_name: &str, ) -> Result<()>
Create
new_name inside new_parent as a hard link to existing_name
inside existing_parent without following symbolic links.Source§fn create_symlink_entry(
&self,
_target: &Path,
_parent: &Context,
_name: &str,
_attributes: &Attributes,
) -> Result<()>
fn create_symlink_entry( &self, _target: &Path, _parent: &Context, _name: &str, _attributes: &Attributes, ) -> Result<()>
Create a symbolic link named
name inside the opened parent
directory pointing to target, persisting attributes with the new
entry where the backend can.Source§fn read_symlink_entry(
&self,
_parent: &Context,
_name: &str,
_buffer: &mut [u8],
) -> Result<usize>
fn read_symlink_entry( &self, _parent: &Context, _name: &str, _buffer: &mut [u8], ) -> Result<usize>
Read the target of symbolic link
name inside the opened parent
directory into buffer without following it.Source§fn get_entry_attributes(
&self,
_parent: &Context,
_name: &str,
_attributes: &mut Attributes,
) -> Result<()>
fn get_entry_attributes( &self, _parent: &Context, _name: &str, _attributes: &mut Attributes, ) -> Result<()>
Populate
attributes for child entry name inside the opened parent
directory without following symbolic links.Source§fn set_entry_attributes(
&self,
_parent: &Context,
_name: &str,
_attributes: &Attributes,
) -> Result<()>
fn set_entry_attributes( &self, _parent: &Context, _name: &str, _attributes: &Attributes, ) -> Result<()>
Update
attributes for child entry name inside the opened parent
directory without following symbolic links.Source§fn create_symlink(
&self,
_target: &Path,
_link: &Path,
_attributes: &Attributes,
) -> Result<()>
fn create_symlink( &self, _target: &Path, _link: &Path, _attributes: &Attributes, ) -> Result<()>
Create a symbolic link without resolving its target, persisting
attributes with the new entry where the backend can. Backends that do
not support native links or a durable Xila link representation may keep
the default implementation.Source§fn link(&self, _existing: &Path, _new: &Path) -> Result<()>
fn link(&self, _existing: &Path, _new: &Path) -> Result<()>
Create
new as an additional directory entry for the existing,
non-directory object at existing, sharing its data. Backends without
hard links (including LittleFS) keep the default implementation, which
reports crate::IoErrorKind::Unsupported.Source§fn read_symlink(&self, _link: &Path, _buffer: &mut [u8]) -> Result<usize>
fn read_symlink(&self, _link: &Path, _buffer: &mut [u8]) -> Result<usize>
Copy the stored target of a symbolic link into a caller-owned buffer.
This operation must inspect the final directory entry without following it.
Source§fn writable_attributes(&self) -> AttributeFlags
fn writable_attributes(&self) -> AttributeFlags
Return the fields this backend can accept through
set_attributes. Read moreSource§fn persistent_attributes(&self) -> AttributeFlags
fn persistent_attributes(&self) -> AttributeFlags
Return the fields that are stored durably by this filesystem. Read more
Source§impl MountOperations for DummyFileSystem
impl MountOperations for DummyFileSystem
impl FileOperations for DummyFileSystem
Auto Trait Implementations§
impl Freeze for DummyFileSystem
impl RefUnwindSafe for DummyFileSystem
impl Send for DummyFileSystem
impl Sync for DummyFileSystem
impl Unpin for DummyFileSystem
impl UnsafeUnpin for DummyFileSystem
impl UnwindSafe for DummyFileSystem
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