pub struct PostcardCodec;Expand description
Default compact binary codec for v0.
PostcardCodec is compact and works well for local cache values that derive
serde::Serialize and serde::Deserialize.
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 Debug for PostcardCodec
impl Debug for PostcardCodec
Source§impl Default for PostcardCodec
impl Default for PostcardCodec
Source§fn default() -> PostcardCodec
fn default() -> PostcardCodec
Returns the “default value” for a type. Read more
impl Copy for PostcardCodec
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