29 lines
552 B
Rust
29 lines
552 B
Rust
#[derive(Debug, Clone, Copy)]
|
|
pub struct PendingRange {
|
|
pub chunk_start: usize,
|
|
pub chunk_end: usize,
|
|
pub start: usize,
|
|
pub end: usize,
|
|
}
|
|
|
|
impl PendingRange {
|
|
pub fn len(self) -> usize {
|
|
self.end.saturating_sub(self.start)
|
|
}
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct ChunkRecord {
|
|
pub chunk_start: usize,
|
|
pub chunk_end: usize,
|
|
pub tested_count: usize,
|
|
pub open_count: usize,
|
|
pub is_complete: bool,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Default)]
|
|
pub struct ScanTotals {
|
|
pub tested: usize,
|
|
pub open: usize,
|
|
}
|