MCPcopy Index your code
hub / github.com/Firstyear/opensuse-proxy-cache / decode

Method decode

redis-server/src/codec.rs:239–244  ·  view source on GitHub ↗
(&mut self, buf: &mut BytesMut)

Source from the content-addressed store, hash-verified

237 type Error = io::Error;
238
239 fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>, Self::Error> {
240 match &self.d_state {
241 DecodeState::Cmd => self.decode_cmd(buf),
242 DecodeState::Set { .. } => self.process_set(buf),
243 }
244 }
245}
246
247impl Encoder<RedisServerMsg<'_>> for RedisCodec {

Callers

nothing calls this directly

Calls 2

decode_cmdMethod · 0.80
process_setMethod · 0.80

Tested by

no test coverage detected