pub struct Scanner<'a> { /* private fields */ }Expand description
The scanner. Holds the catalog handle; one scan call per source.
Implementations§
Source§impl<'a> Scanner<'a>
impl<'a> Scanner<'a>
pub fn new(catalog: &'a Catalog) -> Self
Sourcepub fn scan(
&self,
request: &ScanRequest,
cancel: &AtomicBool,
) -> OrbokResult<ScanSummary>
pub fn scan( &self, request: &ScanRequest, cancel: &AtomicBool, ) -> OrbokResult<ScanSummary>
Scan one active source (RFC-004 §10). cancel may be flipped by
the UI at any time; the scan stops at the next file boundary.
Auto Trait Implementations§
impl<'a> Freeze for Scanner<'a>
impl<'a> RefUnwindSafe for Scanner<'a>
impl<'a> Send for Scanner<'a>
impl<'a> Sync for Scanner<'a>
impl<'a> Unpin for Scanner<'a>
impl<'a> UnsafeUnpin for Scanner<'a>
impl<'a> UnwindSafe for Scanner<'a>
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