pub struct TransactionParticipant {
pub node_id: NodeId,
pub vote: ParticipantVote,
pub prepared: bool,
pub committed: bool,
pub last_contact: Option<u64>,
}Expand description
A participant in a distributed transaction.
Fields§
§node_id: NodeId§vote: ParticipantVote§prepared: bool§committed: bool§last_contact: Option<u64>Implementations§
Source§impl TransactionParticipant
impl TransactionParticipant
Sourcepub fn record_prepare(&mut self, vote: ParticipantVote)
pub fn record_prepare(&mut self, vote: ParticipantVote)
Record a prepare vote.
Sourcepub fn record_commit(&mut self)
pub fn record_commit(&mut self)
Record commit acknowledgment.
Trait Implementations§
Source§impl Clone for TransactionParticipant
impl Clone for TransactionParticipant
Source§fn clone(&self) -> TransactionParticipant
fn clone(&self) -> TransactionParticipant
Returns a duplicate of the value. Read more
1.0.0 · 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 TransactionParticipant
impl Debug for TransactionParticipant
Source§impl<'de> Deserialize<'de> for TransactionParticipant
impl<'de> Deserialize<'de> for TransactionParticipant
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
Auto Trait Implementations§
impl Freeze for TransactionParticipant
impl RefUnwindSafe for TransactionParticipant
impl Send for TransactionParticipant
impl Sync for TransactionParticipant
impl Unpin for TransactionParticipant
impl UnsafeUnpin for TransactionParticipant
impl UnwindSafe for TransactionParticipant
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