pub struct StringCodec;Expand description
UTF-8 codec for String keys and values.
Trait Implementations§
Source§impl Clone for StringCodec
impl Clone for StringCodec
impl Copy for StringCodec
Source§impl Debug for StringCodec
impl Debug for StringCodec
Source§impl Default for StringCodec
impl Default for StringCodec
Source§impl RedisCodec<String, String> for StringCodec
impl RedisCodec<String, String> for StringCodec
Source§fn encode_key(&self, key: &String) -> Result<Vec<u8>, RedisBackendError>
fn encode_key(&self, key: &String) -> Result<Vec<u8>, RedisBackendError>
Encodes a typed key as
Redis key bytes. Read moreSource§fn encode_value(&self, value: &String) -> Result<Vec<u8>, RedisBackendError>
fn encode_value(&self, value: &String) -> Result<Vec<u8>, RedisBackendError>
Encodes a typed value. Read more
Source§fn decode_value(&self, bytes: &[u8]) -> Result<String, RedisBackendError>
fn decode_value(&self, bytes: &[u8]) -> Result<String, RedisBackendError>
Decodes a typed value. Read more
Auto Trait Implementations§
impl Freeze for StringCodec
impl RefUnwindSafe for StringCodec
impl Send for StringCodec
impl Sync for StringCodec
impl Unpin for StringCodec
impl UnsafeUnpin for StringCodec
impl UnwindSafe for StringCodec
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