pub struct JournalCommit {
pub sequence: u32,
pub commit_seconds: i64,
pub commit_nanoseconds: u32,
}Expand description
Commit block — marks end of a complete transaction.
Offsets (beyond the 12-byte header): 0x0C checksum_type (u8) 0x0D checksum_size (u8) 0x30 commit_seconds (i64 BE) 0x38 commit_nanoseconds (u32 BE)
Fields§
§sequence: u32§commit_seconds: i64§commit_nanoseconds: u32Implementations§
Trait Implementations§
Source§impl Clone for JournalCommit
impl Clone for JournalCommit
Source§fn clone(&self) -> JournalCommit
fn clone(&self) -> JournalCommit
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 JournalCommit
impl RefUnwindSafe for JournalCommit
impl Send for JournalCommit
impl Sync for JournalCommit
impl Unpin for JournalCommit
impl UnsafeUnpin for JournalCommit
impl UnwindSafe for JournalCommit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more