Struct BatchView
pub struct BatchView<'a> {
pub header: BatchHeader,
pub len: usize,
pub checksum: u64,
/* private fields */
}Expand description
A batch that passed its checksum.
Fields§
§header: BatchHeader§len: usizeDistance to the next batch.
checksum: u64Implementations§
§impl<'a> BatchView<'a>
impl<'a> BatchView<'a>
pub fn sections(&self) -> impl Iterator<Item = SectionRef<'a>> + '_
pub fn sections(&self) -> impl Iterator<Item = SectionRef<'a>> + '_
Sections in order. Each is validated when the batch is read.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for BatchView<'a>
impl<'a> Freeze for BatchView<'a>
impl<'a> Move for BatchView<'a>
impl<'a> RefUnwindSafe for BatchView<'a>
impl<'a> Send for BatchView<'a>
impl<'a> Sync for BatchView<'a>
impl<'a> Unpin for BatchView<'a>
impl<'a> UnsafeUnpin for BatchView<'a>
impl<'a> UnwindSafe for BatchView<'a>
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