struct InMemoryFileSystem {
files: Arc<Mutex<HashMap<PathBuf, Arc<Vec<u8>>>>>,
}Fields§
§files: Arc<Mutex<HashMap<PathBuf, Arc<Vec<u8>>>>>Trait Implementations§
Source§impl Clone for InMemoryFileSystem
impl Clone for InMemoryFileSystem
Source§fn clone(&self) -> InMemoryFileSystem
fn clone(&self) -> InMemoryFileSystem
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 Default for InMemoryFileSystem
impl Default for InMemoryFileSystem
Source§fn default() -> InMemoryFileSystem
fn default() -> InMemoryFileSystem
Returns the “default value” for a type. Read more
Source§impl FileSystem for InMemoryFileSystem
impl FileSystem for InMemoryFileSystem
type Input = InMemoryInput
type Output = InMemoryOutput
Source§fn open_input(
&self,
path: &Path,
_: bool,
) -> Result<(Self::Input, Option<Arc<File>>)>
fn open_input( &self, path: &Path, _: bool, ) -> Result<(Self::Input, Option<Arc<File>>)>
Opens an input and optionally requests that its pages be populated in advance.
Source§fn canonicalize(&self, path: &Path) -> Result<PathBuf>
fn canonicalize(&self, path: &Path) -> Result<PathBuf>
Resolves symbolic links and returns the canonical absolute path.
Source§fn remove_file(&self, path: &Path) -> Result<()>
fn remove_file(&self, path: &Path) -> Result<()>
Removes a file.
Source§fn rename_file(&self, path: &Path, new_path: &Path) -> Result<()>
fn rename_file(&self, path: &Path, new_path: &Path) -> Result<()>
Rename an existing file to a new path.
Source§fn create_output(
&self,
path: Arc<Path>,
options: OutputOptions,
) -> Result<Self::Output>
fn create_output( &self, path: Arc<Path>, options: OutputOptions, ) -> Result<Self::Output>
Creates the sized random-access output.
Source§fn write_auxiliary(&self, path: &Path, bytes: &[u8]) -> Result
fn write_auxiliary(&self, path: &Path, bytes: &[u8]) -> Result
Writes a complete auxiliary output.
Auto Trait Implementations§
impl Freeze for InMemoryFileSystem
impl RefUnwindSafe for InMemoryFileSystem
impl Send for InMemoryFileSystem
impl Sync for InMemoryFileSystem
impl Unpin for InMemoryFileSystem
impl UnsafeUnpin for InMemoryFileSystem
impl UnwindSafe for InMemoryFileSystem
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref