[−][src]Struct mruby_vfs::FakeFileSystem
An in-memory file system.
Methods
impl<Metadata: Clone> FileSystem<Metadata>
[src]
Trait Implementations
impl<Metadata: Clone> FileSystem for FileSystem<Metadata>
[src]
type DirEntry = DirEntry
type ReadDir = ReadDir
type Metadata = Metadata
fn current_dir(&self) -> Result<PathBuf>
[src]
fn set_current_dir<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn is_dir<P: AsRef<Path>>(&self, path: P) -> bool
[src]
fn is_file<P: AsRef<Path>>(&self, path: P) -> bool
[src]
fn create_dir<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn create_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn remove_dir<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn remove_dir_all<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn read_dir<P: AsRef<Path>>(&self, path: P) -> Result<Self::ReadDir>
[src]
fn create_file<P, B>(&self, path: P, buf: B) -> Result<()> where
P: AsRef<Path>,
B: AsRef<[u8]>,
[src]
P: AsRef<Path>,
B: AsRef<[u8]>,
fn write_file<P, B>(&self, path: P, buf: B) -> Result<()> where
P: AsRef<Path>,
B: AsRef<[u8]>,
[src]
P: AsRef<Path>,
B: AsRef<[u8]>,
fn overwrite_file<P, B>(&self, path: P, buf: B) -> Result<()> where
P: AsRef<Path>,
B: AsRef<[u8]>,
[src]
P: AsRef<Path>,
B: AsRef<[u8]>,
fn read_file<P: AsRef<Path>>(&self, path: P) -> Result<Vec<u8>>
[src]
fn read_file_to_string<P: AsRef<Path>>(&self, path: P) -> Result<String>
[src]
fn read_file_into<P, B>(&self, path: P, buf: B) -> Result<usize> where
P: AsRef<Path>,
B: AsMut<Vec<u8>>,
[src]
P: AsRef<Path>,
B: AsMut<Vec<u8>>,
fn remove_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
fn copy_file<P, Q>(&self, from: P, to: Q) -> Result<()> where
P: AsRef<Path>,
Q: AsRef<Path>,
[src]
P: AsRef<Path>,
Q: AsRef<Path>,
fn rename<P, Q>(&self, from: P, to: Q) -> Result<()> where
P: AsRef<Path>,
Q: AsRef<Path>,
[src]
P: AsRef<Path>,
Q: AsRef<Path>,
fn readonly<P: AsRef<Path>>(&self, path: P) -> Result<bool>
[src]
fn set_readonly<P: AsRef<Path>>(&self, path: P, readonly: bool) -> Result<()>
[src]
fn len<P: AsRef<Path>>(&self, path: P) -> u64
[src]
fn metadata<P: AsRef<Path>>(&self, path: P) -> Option<Self::Metadata>
[src]
fn set_metadata<P: AsRef<Path>>(
&self,
path: P,
metadata: Self::Metadata
) -> Result<()>
[src]
&self,
path: P,
metadata: Self::Metadata
) -> Result<()>
impl<Metadata: Clone> UnixFileSystem for FileSystem<Metadata>
[src]
fn mode<P: AsRef<Path>>(&self, path: P) -> Result<u32>
[src]
fn set_mode<P: AsRef<Path>>(&self, path: P, mode: u32) -> Result<()>
[src]
impl<Metadata: Clone> TempFileSystem for FileSystem<Metadata>
[src]
type TempDir = FakeTempDir<Metadata>
fn temp_dir<S: AsRef<str>>(&self, prefix: S) -> Result<Self::TempDir>
[src]
impl<Metadata: Clone> Clone for FileSystem<Metadata>
[src]
fn clone(&self) -> FileSystem<Metadata>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Metadata: Default + Clone> Default for FileSystem<Metadata>
[src]
fn default() -> FileSystem<Metadata>
[src]
impl<Metadata: Debug + Clone> Debug for FileSystem<Metadata>
[src]
Auto Trait Implementations
impl<Metadata> Send for FileSystem<Metadata> where
Metadata: Send,
Metadata: Send,
impl<Metadata> Unpin for FileSystem<Metadata>
impl<Metadata> Sync for FileSystem<Metadata> where
Metadata: Send,
Metadata: Send,
impl<Metadata> UnwindSafe for FileSystem<Metadata>
impl<Metadata> RefUnwindSafe for FileSystem<Metadata>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,