[−][src]Struct libanu::working_copy::memory::Memory
Fields
files: FileTree
last_modified: SystemTime
Implementations
impl Memory
[src]
pub fn new() -> Self
[src]
pub fn list_files(&self) -> Vec<String>
[src]
pub fn add_file(&mut self, file: &str, file_contents: Vec<u8>)
[src]
pub fn add_dir(&mut self, file: &str)
[src]
Trait Implementations
impl Debug for Memory
[src]
impl WorkingCopy for Memory
[src]
fn create_dir_all(&mut self, file: &str) -> Result<(), Error>
[src]
fn file_metadata(&self, file: &str) -> Result<InodeMetadata, Error>
[src]
fn read_file(&self, file: &str, buffer: &mut Vec<u8>) -> Result<(), Error>
[src]
fn modified_time(&self, _file: &str) -> Result<SystemTime, Error>
[src]
fn remove_path(&mut self, path: &str) -> Result<(), Error>
[src]
fn rename(&mut self, old: &str, new: &str) -> Result<(), Error>
[src]
fn set_permissions(&mut self, file: &str, permissions: u16) -> Result<(), Error>
[src]
fn write_file<A, F: FnOnce(&mut dyn Write) -> Result<A, Error>>(
&mut self,
file: &str,
writer: F
) -> Result<A, Error>
[src]
&mut self,
file: &str,
writer: F
) -> Result<A, Error>
Auto Trait Implementations
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,