pub struct MemoryFileManager { /* private fields */ }Expand description
The FileManager implementation for MemoryFile. Simulates a
persistent in-memory filesystem.
Trait Implementations§
Source§impl Clone for MemoryFileManager
impl Clone for MemoryFileManager
Source§fn clone(&self) -> MemoryFileManager
fn clone(&self) -> MemoryFileManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryFileManager
impl Debug for MemoryFileManager
Source§impl Default for MemoryFileManager
impl Default for MemoryFileManager
Source§fn default() -> MemoryFileManager
fn default() -> MemoryFileManager
Returns the “default value” for a type. Read more
Source§impl FileManager for MemoryFileManager
impl FileManager for MemoryFileManager
Source§type File = MemoryFile
type File = MemoryFile
The type of file managed by this manager.
Source§type FileHandle = OpenMemoryFile
type FileHandle = OpenMemoryFile
A file handle type, which can have operations executed against it.
Source§fn append(&self, path: impl AsRef<Path>) -> Result<Self::FileHandle, Error>
fn append(&self, path: impl AsRef<Path>) -> Result<Self::FileHandle, Error>
Returns a file handle that can be used to read and write.
Source§fn read(&self, path: impl AsRef<Path>) -> Result<Self::FileHandle, Error>
fn read(&self, path: impl AsRef<Path>) -> Result<Self::FileHandle, Error>
Returns a file handle that can be used for reading operations.
Source§fn file_length(&self, path: impl AsRef<Path>) -> Result<u64, Error>
fn file_length(&self, path: impl AsRef<Path>) -> Result<u64, Error>
Returns the length of the file.
Source§impl ManagedFileOpener<MemoryFile> for MemoryFileManager
impl ManagedFileOpener<MemoryFile> for MemoryFileManager
Auto Trait Implementations§
impl Freeze for MemoryFileManager
impl !RefUnwindSafe for MemoryFileManager
impl Send for MemoryFileManager
impl Sync for MemoryFileManager
impl Unpin for MemoryFileManager
impl !UnwindSafe for MemoryFileManager
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