pub struct PostcardCodec;Expand description
Postcard-based codec (compact binary serialization).
Trait Implementations§
Source§impl ObjectCodec for PostcardCodec
impl ObjectCodec for PostcardCodec
fn serialize_object<T: Serialize>(&self, obj: &T) -> FsResult<Vec<u8>>
fn deserialize_object<T: DeserializeOwned>(&self, bytes: &[u8]) -> FsResult<T>
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