(&mut self, line: T, buf: &mut BytesMut)
| 82 | type Error = FtlError; |
| 83 | |
| 84 | fn encode(&mut self, line: T, buf: &mut BytesMut) -> Result<(), FtlError> { |
| 85 | let line = line.as_ref(); |
| 86 | buf.reserve(line.len()); |
| 87 | buf.put(line.as_bytes()); |
| 88 | Ok(()) |
| 89 | } |
| 90 | } |
| 91 | #[derive(Debug)] |
| 92 | pub enum FtlError { |
nothing calls this directly
no outgoing calls
no test coverage detected