pub struct BincodeCodec;Expand description
Default CacheCodec implementation backed by bincode.
Trait Implementations§
Source§impl CacheCodec for BincodeCodec
impl CacheCodec for BincodeCodec
fn encode(&self, entry: &CacheEntry) -> Result<Vec<u8>, CacheError>
fn decode(&self, bytes: &[u8]) -> Result<CacheEntry, CacheError>
Source§impl Clone for BincodeCodec
impl Clone for BincodeCodec
Source§fn clone(&self) -> BincodeCodec
fn clone(&self) -> BincodeCodec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for BincodeCodec
impl Default for BincodeCodec
Source§fn default() -> BincodeCodec
fn default() -> BincodeCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BincodeCodec
impl RefUnwindSafe for BincodeCodec
impl Send for BincodeCodec
impl Sync for BincodeCodec
impl Unpin for BincodeCodec
impl UnwindSafe for BincodeCodec
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