Added scaffoded project
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#[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,
|
||||
}
|
||||
Reference in New Issue
Block a user