H3: implement Debug for RecvBody
use std::{
- cmp,
+ cmp, fmt,
io::{self, ErrorKind},
mem,
- fmt,
};
use bytes::{Bytes, BytesMut};
@@ -126,6 +125,12 @@ impl RecvBody {
}
}
+impl fmt::Debug for RecvBody {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ write!(f, "RecvBody {{ stream_id: {:?} }}", self.stream_id)
+ }
+}
+
pub struct ReadToEnd {
state: RecvBodyState,
capacity: usize,
