Ok(())
}, |e| error!("{} #{}: rx discarding: {}", &ic, req_num, e));
- dbg!(&rx_queue.remaining());
+ dbg!(&rx_queue);
rx_queue = default(); // xxx
}
}
queue: VecDeque<Box<[u8]>>,
}
+impl Debug for Queue {
+ #[throws(fmt::Error)]
+ fn fmt(&self, f: &mut fmt::Formatter) {
+ write!(f, "Queue{{content={},eaten1={},queue=[",
+ self.content, self.eaten1)?;
+ for q in &self.queue { write!(f, "{},", q.len())?; }
+ write!(f, "]}}")?;
+ }
+}
+
impl Queue {
pub fn push<B: Into<Box<[u8]>>>(&mut self, b: B) {
self.push_(b.into());