pub struct PostcardCodec;Expand description
Default CacheCodec implementation, backed by postcard.
Replaces the bincode-backed codec used up to 0.5.x. The payload carries
tags, which the previous codec silently dropped.
Trait Implementations§
Source§impl CacheCodec for PostcardCodec
impl CacheCodec for PostcardCodec
Source§impl Clone for PostcardCodec
impl Clone for PostcardCodec
Source§fn clone(&self) -> PostcardCodec
fn clone(&self) -> PostcardCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostcardCodec
impl Default for PostcardCodec
Source§fn default() -> PostcardCodec
fn default() -> PostcardCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PostcardCodec
impl RefUnwindSafe for PostcardCodec
impl Send for PostcardCodec
impl Sync for PostcardCodec
impl Unpin for PostcardCodec
impl UnsafeUnpin for PostcardCodec
impl UnwindSafe for PostcardCodec
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