pub struct MessagePack;Expand description
The MessagePack codec of events and snapshots.
Trait Implementations§
Source§impl Clone for MessagePack
impl Clone for MessagePack
impl Copy for MessagePack
Source§impl Debug for MessagePack
impl Debug for MessagePack
Source§impl Default for MessagePack
impl Default for MessagePack
Source§impl EventCodec for MessagePack
impl EventCodec for MessagePack
Source§impl SnapshotCodec for MessagePack
impl SnapshotCodec for MessagePack
Source§fn format(&self) -> u8
fn format(&self) -> u8
The first byte of every record this codec writes, which tells its
records from other codecs’ (
Codecs::decode_snapshot).Source§fn encode(&self, snapshot: Snapshot<'_>, out: &mut Vec<u8>) -> Result<(), Error>
fn encode(&self, snapshot: Snapshot<'_>, out: &mut Vec<u8>) -> Result<(), Error>
Appends a record of
snapshot to out, starting with
SnapshotCodec::format. On an error, part of it may have been
written: the caller truncates out.Auto Trait Implementations§
impl Freeze for MessagePack
impl RefUnwindSafe for MessagePack
impl Send for MessagePack
impl Sync for MessagePack
impl Unpin for MessagePack
impl UnsafeUnpin for MessagePack
impl UnwindSafe for MessagePack
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