pub enum ParticipantVote {
Commit,
Abort,
Pending,
}Expand description
Vote from a participant in 2PC.
Variants§
Commit
Participant votes to commit.
Abort
Participant votes to abort.
Pending
Participant hasn’t voted yet.
Trait Implementations§
Source§impl Clone for ParticipantVote
impl Clone for ParticipantVote
Source§fn clone(&self) -> ParticipantVote
fn clone(&self) -> ParticipantVote
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 ParticipantVote
impl Debug for ParticipantVote
Source§impl<'de> Deserialize<'de> for ParticipantVote
impl<'de> Deserialize<'de> for ParticipantVote
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
Source§impl PartialEq for ParticipantVote
impl PartialEq for ParticipantVote
Source§impl Serialize for ParticipantVote
impl Serialize for ParticipantVote
impl Copy for ParticipantVote
impl Eq for ParticipantVote
impl StructuralPartialEq for ParticipantVote
Auto Trait Implementations§
impl Freeze for ParticipantVote
impl RefUnwindSafe for ParticipantVote
impl Send for ParticipantVote
impl Sync for ParticipantVote
impl Unpin for ParticipantVote
impl UnsafeUnpin for ParticipantVote
impl UnwindSafe for ParticipantVote
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.