Scan indexfiles and channels

This commit is contained in:
Dominik Werder
2021-10-29 15:50:01 +02:00
parent ee376dbd93
commit 9917f50376
9 changed files with 1890 additions and 1279 deletions

View File

@@ -278,15 +278,6 @@ impl From<FilePos> for u64 {
}
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
pub struct DataHeaderPos(pub u64);
impl PartialEq for DataHeaderPos {
fn eq(&self, other: &Self) -> bool {
self.0 == other.0
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum TimeRange {
Time { beg: DateTime<Utc>, end: DateTime<Utc> },
@@ -294,7 +285,7 @@ pub enum TimeRange {
Nano { beg: u64, end: u64 },
}
#[derive(Clone, Copy, Serialize, Deserialize)]
#[derive(Clone, Copy, PartialEq, PartialOrd, Serialize, Deserialize)]
pub struct Nanos {
pub ns: u64,
}