[−][src]Struct libpijul::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 Default for Memory
[src]
impl WorkingCopy for Memory
[src]
type Error = Error
pub fn create_dir_all(&mut self, file: &str) -> Result<(), Self::Error>
[src]
pub fn file_metadata(&self, file: &str) -> Result<InodeMetadata, Self::Error>
[src]
pub fn read_file(
&self,
file: &str,
buffer: &mut Vec<u8>
) -> Result<(), Self::Error>
[src]
&self,
file: &str,
buffer: &mut Vec<u8>
) -> Result<(), Self::Error>
pub fn modified_time(&self, _file: &str) -> Result<SystemTime, Self::Error>
[src]
pub fn remove_path(&mut self, path: &str) -> Result<(), Self::Error>
[src]
pub fn rename(&mut self, old: &str, new: &str) -> Result<(), Self::Error>
[src]
pub fn set_permissions(
&mut self,
file: &str,
permissions: u16
) -> Result<(), Self::Error>
[src]
&mut self,
file: &str,
permissions: u16
) -> Result<(), Self::Error>
pub fn write_file<A, E: Error, F: FnOnce(&mut dyn Write) -> Result<A, E>>(
&mut self,
file: &str,
writer: F
) -> Result<A, WriteError<E>>
[src]
&mut self,
file: &str,
writer: F
) -> Result<A, WriteError<E>>
Auto Trait Implementations
impl RefUnwindSafe for Memory
[src]
impl Send for Memory
[src]
impl Sync for Memory
[src]
impl Unpin for Memory
[src]
impl UnwindSafe for Memory
[src]
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>,