pub enum SnapshotMarker {
Begin,
End(u64),
}Expand description
Decoded snapshot marker, returned by decode_snapshot_marker.
Variants§
Begin
+SNAPSHOT\r\n — primary is about to stream snapshot chunks.
End(u64)
+SNAPSHOT_END <ack_offset>\r\n — end of snapshot; the next
live frame’s offset will equal ack_offset.
Trait Implementations§
Source§impl Debug for SnapshotMarker
impl Debug for SnapshotMarker
impl Eq for SnapshotMarker
Source§impl PartialEq for SnapshotMarker
impl PartialEq for SnapshotMarker
Source§fn eq(&self, other: &SnapshotMarker) -> bool
fn eq(&self, other: &SnapshotMarker) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotMarker
Auto Trait Implementations§
impl Freeze for SnapshotMarker
impl RefUnwindSafe for SnapshotMarker
impl Send for SnapshotMarker
impl Sync for SnapshotMarker
impl Unpin for SnapshotMarker
impl UnsafeUnpin for SnapshotMarker
impl UnwindSafe for SnapshotMarker
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