pub struct RootKey {
pub path: PathBuf,
pub recursive: bool,
pub cross_filesystem: bool,
pub ignores: IgnoreSpec,
}Expand description
Identity of a shared root. Enumeration scope is part of the identity: recursive and non-recursive syncs of the same directory index different trees and cannot share a reconciler — and neither do two syncs that exclude different things, for exactly the same reason.
Fields§
§path: PathBufCanonical root path (see validate_root).
recursive: bool§cross_filesystem: bool§ignores: IgnoreSpecWhat this root excludes from enumeration, watching, hashing, and records (docs/design/fs-watch.md “Ignoring”). Default excludes nothing, and an empty spec costs nothing: no matcher is built.
Trait Implementations§
impl Eq for RootKey
impl StructuralPartialEq for RootKey
Auto Trait Implementations§
impl Freeze for RootKey
impl RefUnwindSafe for RootKey
impl Send for RootKey
impl Sync for RootKey
impl Unpin for RootKey
impl UnsafeUnpin for RootKey
impl UnwindSafe for RootKey
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