DummyFileSystem

Struct DummyFileSystem 

Source
pub struct DummyFileSystem;

Trait Implementations§

Source§

impl AttributeOperations for DummyFileSystem

Source§

fn get_attributes( &self, _context: &mut Context, _attributes: &mut Attributes, ) -> Result<()>

Source§

fn set_attributes( &self, _context: &mut Context, _attributes: &Attributes, ) -> Result<()>

Source§

impl BaseOperations for DummyFileSystem

Source§

fn read( &self, _context: &mut Context, _buffer: &mut [u8], _absolute_position: Size, ) -> Result<usize>

Read data from the device at the current position. Read more
Source§

fn write( &self, _context: &mut Context, _buffer: &[u8], _absolute_position: Size, ) -> Result<usize>

Write data to the device at the current position. Read more
Source§

fn clone_context(&self, _context: &Context) -> Result<Context>

Source§

fn open(&self, _context: &mut Context) -> Result<()>

Source§

fn close(&self, _context: &mut Context) -> Result<()>

Source§

fn read_until( &self, context: &mut Context, buffer: &mut [u8], absolute_position: Size, delimiter: &[u8], ) -> Result<usize>

Source§

fn write_pattern( &self, context: &mut Context, pattern: &[u8], count: usize, absolute_position: Size, ) -> Result<usize>

Source§

fn write_vectored( &self, context: &mut Context, buffers: &[&[u8]], absolute_position: Size, ) -> Result<usize>

Source§

fn set_position( &self, _context: &mut Context, _current_position: Size, _position: &Position, ) -> Result<Size>

Set the current position cursor for read/write operations. Read more
Source§

fn flush(&self, _context: &mut Context) -> Result<()>

Flush any buffered data to the underlying storage. Read more
Source§

fn control( &self, _context: &mut Context, _command: ControlCommandIdentifier, _input: &AnyByLayout, _output: &mut AnyByLayout, ) -> Result<()>

Source§

impl DirectoryOperations for DummyFileSystem

Source§

fn read(&self, _context: &mut Context) -> Result<Option<Entry>>

Source§

fn set_position(&self, _context: &mut Context, _position: Size) -> Result<()>

Source§

fn get_position(&self, _context: &mut Context) -> Result<Size>

Source§

fn rewind(&self, _context: &mut Context) -> Result<()>

Source§

fn close(&self, _context: &mut Context) -> Result<()>

Source§

impl FileSystemOperations for DummyFileSystem

Source§

fn lookup_directory(&self, _context: &mut Context, _path: &Path) -> Result<()>

Source§

fn lookup_file( &self, _context: &mut Context, _path: &Path, _flags: Flags, ) -> Result<()>

Source§

fn create_directory(&self, _path: &Path) -> Result<()>

Source§

fn create_file(&self, _path: &Path) -> Result<()>

Source§

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<()>

Rename or move a file or directory. Read more
Source§

fn get_attributes( &self, _path: &Path, _attributes: &mut Attributes, ) -> Result<()>

Source§

fn set_attributes(&self, _path: &Path, _attributes: &Attributes) -> Result<()>

Source§

impl MountOperations for DummyFileSystem

Source§

fn mount(&self) -> Result<()>

Source§

fn unmount(&self) -> Result<()>

Source§

impl FileOperations for DummyFileSystem

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.