pub enum ScanVisit {
Continue,
Stop,
}Expand description
Flow control returned from a FileSystem::visit_dir visitor.
Directory implementations must stop enumerating as soon as the visitor returns
Self::Stop. This lets a background scan observe cancellation without giving
filesystem implementations access to internal worker state.
Variants§
Trait Implementations§
impl Copy for ScanVisit
impl Eq for ScanVisit
impl StructuralPartialEq for ScanVisit
Auto Trait Implementations§
impl Forget for ScanVisit
impl Freeze for ScanVisit
impl Move for ScanVisit
impl RefUnwindSafe for ScanVisit
impl Send for ScanVisit
impl Sync for ScanVisit
impl Unpin for ScanVisit
impl UnsafeUnpin for ScanVisit
impl UnwindSafe for ScanVisit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.