pub struct FileSystem { /* private fields */ }Implementations§
Source§impl FileSystem
impl FileSystem
pub fn from_root<P: AsRef<Path>>(root: P) -> Self
pub fn record_prefixes<T: MutTxnTExt + TxnTExt + Send + Sync + 'static, C: ChangeStore + Clone + Send + 'static, P: AsRef<Path>>( &self, txn: ArcTxn<T>, algo: Algorithm, channel: ChannelRef<T>, changes: &C, state: &mut RecordBuilder, repo_path: CanonicalPathBuf, prefixes: &[P], force: bool, threads: usize, salt: u64, ) -> Result<(), Error<C::Error, T>>
pub fn add_prefix_rec<T: MutTxnTExt + TxnTExt>( &self, txn: &ArcTxn<T>, repo_path: CanonicalPathBuf, full: CanonicalPathBuf, force: bool, threads: usize, salt: u64, ) -> Result<(), AddError<T>>
pub fn iterate_prefix_rec<F: Fn(&Path, bool) -> bool + Send + Sync + 'static>( &self, repo_path: CanonicalPathBuf, full: CanonicalPathBuf, force: bool, threads: usize, follow: F, ) -> Result<Untracked, Error>
pub fn record_prefix<T: MutTxnTExt + TxnTExt + Send + Sync + 'static, C: ChangeStore + Clone + Send + 'static>( &self, txn: ArcTxn<T>, algorithm: Algorithm, channel: ChannelRef<T>, changes: &C, state: &mut RecordBuilder, repo_path: CanonicalPathBuf, prefix: &Path, force: bool, threads: usize, salt: u64, ) -> Result<(), Error<C::Error, T>>
Trait Implementations§
Source§impl Clone for FileSystem
impl Clone for FileSystem
Source§fn clone(&self) -> FileSystem
fn clone(&self) -> FileSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl WorkingCopy for FileSystem
impl WorkingCopy for FileSystem
type Writer = BufWriter<File>
fn create_dir_all(&self, file: &str) -> Result<(), Self::Error>
fn remove_path(&self, path: &str, rec: bool) -> Result<(), Self::Error>
fn rename(&self, former: &str, new: &str) -> Result<(), Self::Error>
fn set_permissions( &self, name: &str, permissions: u16, ) -> Result<(), Self::Error>
fn write_file(&self, file: &str, _: Inode) -> Result<Self::Writer, Self::Error>
fn touch(&self, file: &str, time: SystemTime) -> Result<(), Self::Error>
fn is_writable(&self, _path: &str) -> Result<bool, Self::Error>
Source§impl WorkingCopyRead for FileSystem
impl WorkingCopyRead for FileSystem
Auto Trait Implementations§
impl Freeze for FileSystem
impl RefUnwindSafe for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnsafeUnpin for FileSystem
impl UnwindSafe for FileSystem
Blanket Implementations§
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