1 2 3 4 5 6 7 8 9 10 11 12 13 14
use moq_transfork::coding::*; use derive_more::Debug; pub type Timestamp = std::time::Duration; #[derive(Clone, Debug)] pub struct Frame { pub timestamp: Timestamp, pub keyframe: bool, #[debug("{}", payload.len())] pub payload: Bytes, }