| 22 | |
| 23 | #[allow(dead_code)] |
| 24 | pub enum RedisServerMsg<'a> { |
| 25 | Ok, |
| 26 | Error(String), |
| 27 | // Info returns a single bulk string. |
| 28 | Info { used_memory: u64 }, |
| 29 | KvPair { k: String, v: String }, |
| 30 | DataHdr { sz: usize }, |
| 31 | DataChunk { slice: &'a [u8] }, |
| 32 | DataEof, |
| 33 | Null, |
| 34 | Pong, |
| 35 | } |
| 36 | |
| 37 | #[derive(Debug)] |
| 38 | enum DecodeState { |
nothing calls this directly
no outgoing calls
no test coverage detected