pub struct LogSnapshot {
pub position: LogPosition,
pub commit_ts: HlcTimestamp,
pub data: Vec<u8>,
}Expand description
A point-in-time image of applied state at a log boundary.
Fields§
§position: LogPositionLast log position included in the snapshot.
commit_ts: HlcTimestampCommit timestamp of position.
data: Vec<u8>Opaque snapshot payload defined by the implementation.
Trait Implementations§
Source§impl Clone for LogSnapshot
impl Clone for LogSnapshot
Source§fn clone(&self) -> LogSnapshot
fn clone(&self) -> LogSnapshot
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 moreAuto Trait Implementations§
impl Freeze for LogSnapshot
impl RefUnwindSafe for LogSnapshot
impl Send for LogSnapshot
impl Sync for LogSnapshot
impl Unpin for LogSnapshot
impl UnsafeUnpin for LogSnapshot
impl UnwindSafe for LogSnapshot
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