pub struct TwoPhasePrepareCommand {
pub tx_id: Vec<u8>,
pub route_key: Vec<u8>,
pub command: Vec<u8>,
pub prepared_at_ms: u64,
}Expand description
Prepare staging entry (durable 2PC; not applied to the user state machine).
Fields§
§tx_id: Vec<u8>Opaque transaction id shared across prepare/commit/abort calls.
route_key: Vec<u8>Shard routing key for this prepare step.
command: Vec<u8>Application-encoded command staged at prepare time.
prepared_at_ms: u64Unix epoch millis when the prepare was first staged (timeout GC).
Trait Implementations§
Source§impl Clone for TwoPhasePrepareCommand
impl Clone for TwoPhasePrepareCommand
Source§fn clone(&self) -> TwoPhasePrepareCommand
fn clone(&self) -> TwoPhasePrepareCommand
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 TwoPhasePrepareCommand
impl Debug for TwoPhasePrepareCommand
Source§impl<'de> Deserialize<'de> for TwoPhasePrepareCommand
impl<'de> Deserialize<'de> for TwoPhasePrepareCommand
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 TwoPhasePrepareCommand
Source§impl PartialEq for TwoPhasePrepareCommand
impl PartialEq for TwoPhasePrepareCommand
Source§impl Serialize for TwoPhasePrepareCommand
impl Serialize for TwoPhasePrepareCommand
impl StructuralPartialEq for TwoPhasePrepareCommand
Auto Trait Implementations§
impl Freeze for TwoPhasePrepareCommand
impl RefUnwindSafe for TwoPhasePrepareCommand
impl Send for TwoPhasePrepareCommand
impl Sync for TwoPhasePrepareCommand
impl Unpin for TwoPhasePrepareCommand
impl UnsafeUnpin for TwoPhasePrepareCommand
impl UnwindSafe for TwoPhasePrepareCommand
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