pub struct SnapshotEncoder(/* private fields */);Expand description
Encodes bounded frames, retaining only the header, counts and previous identity.
Implementations§
Source§impl SnapshotEncoder
impl SnapshotEncoder
Sourcepub fn header(&self) -> &SnapshotHeader
pub fn header(&self) -> &SnapshotHeader
Metadata used to construct the sealed prefix before emitting frames.
Sourcepub fn start(header: SnapshotHeader) -> Result<(Self, Vec<u8>), Error>
pub fn start(header: SnapshotHeader) -> Result<(Self, Vec<u8>), Error>
Start a snapshot and return its header frame.
Auto Trait Implementations§
impl Freeze for SnapshotEncoder
impl RefUnwindSafe for SnapshotEncoder
impl Send for SnapshotEncoder
impl Sync for SnapshotEncoder
impl Unpin for SnapshotEncoder
impl UnsafeUnpin for SnapshotEncoder
impl UnwindSafe for SnapshotEncoder
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