[−][src]Struct libpijul::working_copy::filesystem::FileSystem
Implementations
impl FileSystem
[src]
pub fn from_root<P: AsRef<Path>>(root: P) -> Self
[src]
pub fn record_prefixes<T: MutTxnTExt + TxnTExt, C: ChangeStore, P: AsRef<Path>>(
&mut self,
txn: &mut T,
channel: &mut ChannelRef<T>,
changes: &C,
state: &mut RecordBuilder,
repo_path: CanonicalPathBuf,
prefixes: &[P],
threads: usize
) -> Result<(), Error<C::Error, T::GraphError>>
[src]
&mut self,
txn: &mut T,
channel: &mut ChannelRef<T>,
changes: &C,
state: &mut RecordBuilder,
repo_path: CanonicalPathBuf,
prefixes: &[P],
threads: usize
) -> Result<(), Error<C::Error, T::GraphError>>
pub fn add_prefix_rec<T: MutTxnTExt + TxnTExt>(
&self,
txn: &mut T,
repo_path: CanonicalPathBuf,
full: CanonicalPathBuf,
prefix: &str,
threads: usize
) -> Result<(), AddError<T::GraphError>>
[src]
&self,
txn: &mut T,
repo_path: CanonicalPathBuf,
full: CanonicalPathBuf,
prefix: &str,
threads: usize
) -> Result<(), AddError<T::GraphError>>
pub fn record_prefix<T: MutTxnTExt + TxnTExt, C: ChangeStore>(
&mut self,
txn: &mut T,
channel: &mut ChannelRef<T>,
changes: &C,
state: &mut RecordBuilder,
repo_path: CanonicalPathBuf,
prefix: &Path,
threads: usize
) -> Result<(), Error<C::Error, T::GraphError>>
[src]
&mut self,
txn: &mut T,
channel: &mut ChannelRef<T>,
changes: &C,
state: &mut RecordBuilder,
repo_path: CanonicalPathBuf,
prefix: &Path,
threads: usize
) -> Result<(), Error<C::Error, T::GraphError>>
Trait Implementations
impl WorkingCopy for FileSystem
[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, former: &str, new: &str) -> Result<(), Self::Error>
[src]
pub fn set_permissions(
&mut self,
name: &str,
permissions: u16
) -> Result<(), Self::Error>
[src]
&mut self,
name: &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 FileSystem
[src]
impl Send for FileSystem
[src]
impl Sync for FileSystem
[src]
impl Unpin for FileSystem
[src]
impl UnwindSafe for FileSystem
[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>,