(&self)
| 130 | |
| 131 | impl CommitBuf { |
| 132 | pub fn as_buf(&self) -> impl bytes::Buf + '_ { |
| 133 | bytes::Buf::chain(&self.header[..], &self.body[..]) |
| 134 | } |
| 135 | |
| 136 | pub fn as_reader(&self) -> impl io::Read + '_ { |
| 137 | io::Read::chain(&self.header[..], &self.body[..]) |