diff --git a/src/chunk.rs b/src/chunk.rs index 5541c6c..4aeebba 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -6,7 +6,7 @@ use std::sync::Arc; use ebml::EbmlEventSource; use webm::*; -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct ClusterHead { pub keyframe: bool, pub start: u64, @@ -73,6 +73,7 @@ impl> AsRef<[u8]> for Chunk { } } +#[derive(Debug)] enum ChunkerState { BuildingHeader(Cursor>), // WIP ClusterHead & body buffer @@ -82,6 +83,7 @@ enum ChunkerState { End } +#[derive(Debug)] pub enum ChunkingError { IoError(::std::io::Error), OtherError(E)