diff options
-rw-r--r-- | src/creator.rs | 1 | ||||
-rw-r--r-- | src/frame.rs | 1 | ||||
-rw-r--r-- | src/parser.rs | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/creator.rs b/src/creator.rs index 02d0c12..e4a377a 100644 --- a/src/creator.rs +++ b/src/creator.rs @@ -1,5 +1,6 @@ use std::convert::TryFrom as _; +#[derive(Debug, Clone)] pub struct Creator { base_time: Option<std::time::Instant>, } diff --git a/src/frame.rs b/src/frame.rs index f4e8099..4b72378 100644 --- a/src/frame.rs +++ b/src/frame.rs @@ -1,3 +1,4 @@ +#[derive(Debug, Clone, PartialEq, Eq)] pub struct Frame { pub time: std::time::Duration, pub data: Vec<u8>, diff --git a/src/parser.rs b/src/parser.rs index 89c88ab..2118095 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,4 +1,5 @@ #[repr(packed)] +#[derive(Debug, Clone, Copy)] struct Header { secs: u32, micros: u32, @@ -17,6 +18,7 @@ impl Header { } } +#[derive(Debug, Clone)] pub struct Parser { reading: std::collections::VecDeque<u8>, read_state: Option<Header>, |