pub struct TwoPhaseJournalRecord {
pub tx_id: Vec<u8>,
pub prepared_steps: u32,
pub committed_steps: u32,
}Expand description
Client-side durable progress for cross-shard 2PC resume.
Fields§
§tx_id: Vec<u8>Shared transaction id (matches TwoPhasePlan::tx_id).
prepared_steps: u32Count of consecutive prepared steps from step 0.
committed_steps: u32Count of consecutive committed steps from step 0.
Trait Implementations§
Source§impl Clone for TwoPhaseJournalRecord
impl Clone for TwoPhaseJournalRecord
Source§fn clone(&self) -> TwoPhaseJournalRecord
fn clone(&self) -> TwoPhaseJournalRecord
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 moreSource§impl Debug for TwoPhaseJournalRecord
impl Debug for TwoPhaseJournalRecord
Source§impl<'de> Deserialize<'de> for TwoPhaseJournalRecord
impl<'de> Deserialize<'de> for TwoPhaseJournalRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TwoPhaseJournalRecord
Source§impl PartialEq for TwoPhaseJournalRecord
impl PartialEq for TwoPhaseJournalRecord
Source§impl Serialize for TwoPhaseJournalRecord
impl Serialize for TwoPhaseJournalRecord
impl StructuralPartialEq for TwoPhaseJournalRecord
Auto Trait Implementations§
impl Freeze for TwoPhaseJournalRecord
impl RefUnwindSafe for TwoPhaseJournalRecord
impl Send for TwoPhaseJournalRecord
impl Sync for TwoPhaseJournalRecord
impl Unpin for TwoPhaseJournalRecord
impl UnsafeUnpin for TwoPhaseJournalRecord
impl UnwindSafe for TwoPhaseJournalRecord
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Command for T
impl<T> Command for T
Source§fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
Encode this command to
postcard bytes for the log/wire. Read moreSource§fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
Decode a command from
postcard bytes read back from the log/wire. Read moreimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> Query for T
impl<T> Query for T
Source§fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
fn to_bytes(&self) -> Result<Vec<u8>, CodecError>
Encode this query to
postcard bytes for the wire. Read moreSource§fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
fn from_bytes(bytes: &[u8]) -> Result<T, CodecError>
Decode a query from
postcard bytes. Read more