pub struct RespEncoder;Expand description
Encodes a RESP value into bytes
Implementations§
Source§impl RespEncoder
impl RespEncoder
Sourcepub fn encode(value: &RespValue, buf: &mut BytesMut) -> RedisResult<()>
pub fn encode(value: &RespValue, buf: &mut BytesMut) -> RedisResult<()>
Encode a RESP value into a buffer
Sourcepub fn encode_command(command: &str, args: &[RespValue]) -> RedisResult<Bytes>
pub fn encode_command(command: &str, args: &[RespValue]) -> RedisResult<Bytes>
Encode a command with arguments
Auto Trait Implementations§
impl Freeze for RespEncoder
impl RefUnwindSafe for RespEncoder
impl Send for RespEncoder
impl Sync for RespEncoder
impl Unpin for RespEncoder
impl UnwindSafe for RespEncoder
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