pub struct RootScanPolicy { /* private fields */ }Expand description
Canonical selected root plus its resolved repository exclusion policy.
Implementations§
Source§impl RootScanPolicy
impl RootScanPolicy
Sourcepub fn discover(
root: &Path,
options: &ScanOptions,
control: &IndexWorkControl,
) -> FsResult<Self>
pub fn discover( root: &Path, options: &ScanOptions, control: &IndexWorkControl, ) -> FsResult<Self>
Discover bounded repository policy once for one selected scan root.
§Errors
Returns an error when the root is invalid, repository boundary metadata cannot be validated, or cooperative work has stopped.
Trait Implementations§
Source§impl Clone for RootScanPolicy
impl Clone for RootScanPolicy
Source§fn clone(&self) -> RootScanPolicy
fn clone(&self) -> RootScanPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RootScanPolicy
impl RefUnwindSafe for RootScanPolicy
impl Send for RootScanPolicy
impl Sync for RootScanPolicy
impl Unpin for RootScanPolicy
impl UnwindSafe for RootScanPolicy
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