pub enum ContentVisitEvent<'a> {
FileStart {
worker_index: usize,
file: ContentFile<'a>,
},
Chunk {
worker_index: usize,
file: ContentFile<'a>,
offset: u64,
bytes: &'a [u8],
},
FileEnd {
worker_index: usize,
file: ContentFile<'a>,
status: ContentFileStatus,
bytes_read: u64,
content_hash: Option<&'a str>,
consumer_skipped: bool,
},
}Expand description
Events emitted from one bounded content worker.
Variants§
FileStart
The selected file was opened and its discovery evidence was verified.
Chunk
A borrowed chunk from the scanner’s one content read.
FileEnd
The file read and post-read verification finished.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ContentVisitEvent<'a>
impl<'a> RefUnwindSafe for ContentVisitEvent<'a>
impl<'a> Send for ContentVisitEvent<'a>
impl<'a> Sync for ContentVisitEvent<'a>
impl<'a> Unpin for ContentVisitEvent<'a>
impl<'a> UnsafeUnpin for ContentVisitEvent<'a>
impl<'a> UnwindSafe for ContentVisitEvent<'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