pub struct RespCodec;Implementations§
Source§impl RespCodec
impl RespCodec
pub fn decode(buffer: &[u8]) -> Result<RespDecodeResult>
pub fn encode(frame: &Frame, out: &mut Vec<u8>)
pub fn decode_command(buffer: &[u8]) -> Result<RespCommandDecodeResult<'_>>
pub fn decode_command_spans( buffer: &[u8], ) -> Result<RespCommandSpanDecodeResult>
pub fn as_command(frame: Frame) -> Result<CommandFrame>
Trait Implementations§
impl Copy for RespCodec
Auto Trait Implementations§
impl Freeze for RespCodec
impl RefUnwindSafe for RespCodec
impl Send for RespCodec
impl Sync for RespCodec
impl Unpin for RespCodec
impl UnsafeUnpin for RespCodec
impl UnwindSafe for RespCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more