pub struct CommittedTransaction {
pub config: WriterConfig,
pub last_sequence: u64,
pub log_bytes: Vec<u8>,
}Expand description
One committed local transaction. The suffix is the existing, unchanged log wire encoding; the 24-byte prefix is LocalReplica::allocation_bytes(). This storage container is not a new transport encoding. Reading it grants no write lease and does not implement packet C’s checked writable restart.
Fields§
§config: WriterConfig§last_sequence: u64§log_bytes: Vec<u8>Implementations§
Source§impl CommittedTransaction
impl CommittedTransaction
pub fn read(root: &Path, config: WriterConfig) -> Result<Self, LocalError>
Trait Implementations§
Source§impl Debug for CommittedTransaction
impl Debug for CommittedTransaction
impl Eq for CommittedTransaction
Source§impl PartialEq for CommittedTransaction
impl PartialEq for CommittedTransaction
Source§fn eq(&self, other: &CommittedTransaction) -> bool
fn eq(&self, other: &CommittedTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.1.0.0 (const: unstable) · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
Tests for
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.impl StructuralPartialEq for CommittedTransaction
Auto Trait Implementations§
impl Freeze for CommittedTransaction
impl RefUnwindSafe for CommittedTransaction
impl Send for CommittedTransaction
impl Sync for CommittedTransaction
impl Unpin for CommittedTransaction
impl UnsafeUnpin for CommittedTransaction
impl UnwindSafe for CommittedTransaction
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§fn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Gets the
TypeId of self. Read moreSource§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
Source§fn borrow(&self) -> &T
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
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, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§fn into(self) -> U
fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.