Struct Batch
pub struct Batch {
pub chunks: Vec<Chunk>,
pub first_lsn: Lsn,
pub last_lsn: Lsn,
pub records: u32,
pub bytes: u64,
pub section: Vec<u8>,
}Expand description
Everything appended since the previous LogWriter::take.
Fields§
§chunks: Vec<Chunk>§first_lsn: Lsn§last_lsn: Lsn§records: u32§bytes: u64§section: Vec<u8>Log format 3: the shard’s records first_lsn..=last_lsn as
canonical encodings (one section of a shared-log batch). Empty in
format 2, where chunks carry the segment bytes.
Trait Implementations§
impl Eq for Batch
impl StructuralPartialEq for Batch
Auto Trait Implementations§
impl Forget for Batch
impl Freeze for Batch
impl Move for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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