Struct libsql_replication::frame::FrameHeader
source · #[repr(C)]pub struct FrameHeader {
pub frame_no: FrameNo,
pub checksum: u64,
pub page_no: u32,
pub size_after: u32,
}
Expand description
The file header for the WAL log. All fields are represented in little-endian ordering.
See encode
and decode
for actual layout.
Fields§
§frame_no: FrameNo
Incremental frame number
checksum: u64
Rolling checksum of all the previous frames, including this one.
page_no: u32
page number, if frame_type is FrameType::Page
size_after: u32
Size of the database (in page) after commiting the transaction. This is passed from sqlite, and serves as commit transaction boundary
Trait Implementations§
source§impl Clone for FrameHeader
impl Clone for FrameHeader
source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FrameHeader
impl Debug for FrameHeader
impl Copy for FrameHeader
impl Pod for FrameHeader
Auto Trait Implementations§
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request