pub struct TwoPhaseJournalCommand {
pub tx_id: Vec<u8>,
pub record: Vec<u8>,
}Expand description
Client-side 2PC journal upsert replicated via Meta-Raft (not the user state machine).
Fields§
§tx_id: Vec<u8>Transaction identifier (journal key).
record: Vec<u8>Postcard-encoded 2PC journal record bytes (see crafty_client::TwoPhaseJournalRecord).
Trait Implementations§
Source§impl Clone for TwoPhaseJournalCommand
impl Clone for TwoPhaseJournalCommand
Source§fn clone(&self) -> TwoPhaseJournalCommand
fn clone(&self) -> TwoPhaseJournalCommand
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 TwoPhaseJournalCommand
impl Debug for TwoPhaseJournalCommand
Source§impl<'de> Deserialize<'de> for TwoPhaseJournalCommand
impl<'de> Deserialize<'de> for TwoPhaseJournalCommand
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 TwoPhaseJournalCommand
Source§impl PartialEq for TwoPhaseJournalCommand
impl PartialEq for TwoPhaseJournalCommand
Source§impl Serialize for TwoPhaseJournalCommand
impl Serialize for TwoPhaseJournalCommand
impl StructuralPartialEq for TwoPhaseJournalCommand
Auto Trait Implementations§
impl Freeze for TwoPhaseJournalCommand
impl RefUnwindSafe for TwoPhaseJournalCommand
impl Send for TwoPhaseJournalCommand
impl Sync for TwoPhaseJournalCommand
impl Unpin for TwoPhaseJournalCommand
impl UnsafeUnpin for TwoPhaseJournalCommand
impl UnwindSafe for TwoPhaseJournalCommand
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