pub enum VoteTransaction {
Vote(Vote),
VoteStateUpdate(VoteStateUpdate),
CompactVoteStateUpdate(VoteStateUpdate),
}
Variants§
Implementations§
source§impl VoteTransaction
impl VoteTransaction
pub fn slots(&self) -> Vec<Slot> ⓘ
pub fn slot(&self, i: usize) -> Slot
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn hash(&self) -> Hash
pub fn timestamp(&self) -> Option<UnixTimestamp>
pub fn set_timestamp(&mut self, ts: Option<UnixTimestamp>)
pub fn last_voted_slot(&self) -> Option<Slot>
pub fn last_voted_slot_hash(&self) -> Option<(Slot, Hash)>
Trait Implementations§
source§impl AbiEnumVisitor for VoteTransaction
impl AbiEnumVisitor for VoteTransaction
fn visit_for_abi(&self, digester: &mut AbiDigester) -> DigestResult
source§impl AbiExample for VoteTransaction
impl AbiExample for VoteTransaction
source§impl Clone for VoteTransaction
impl Clone for VoteTransaction
source§fn clone(&self) -> VoteTransaction
fn clone(&self) -> VoteTransaction
Returns a copy 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 VoteTransaction
impl Debug for VoteTransaction
source§impl<'de> Deserialize<'de> for VoteTransaction
impl<'de> Deserialize<'de> for VoteTransaction
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 From<Vote> for VoteTransaction
impl From<Vote> for VoteTransaction
source§impl From<VoteStateUpdate> for VoteTransaction
impl From<VoteStateUpdate> for VoteTransaction
source§fn from(vote_state_update: VoteStateUpdate) -> Self
fn from(vote_state_update: VoteStateUpdate) -> Self
Converts to this type from the input type.
source§impl PartialEq<VoteTransaction> for VoteTransaction
impl PartialEq<VoteTransaction> for VoteTransaction
source§fn eq(&self, other: &VoteTransaction) -> bool
fn eq(&self, other: &VoteTransaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VoteTransaction
impl Serialize for VoteTransaction
impl Eq for VoteTransaction
impl StructuralEq for VoteTransaction
impl StructuralPartialEq for VoteTransaction
Auto Trait Implementations§
impl RefUnwindSafe for VoteTransaction
impl Send for VoteTransaction
impl Sync for VoteTransaction
impl Unpin for VoteTransaction
impl UnwindSafe for VoteTransaction
Blanket Implementations§
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + AbiExample + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + AbiExample + ?Sized,
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for Twhere
T: Serialize + ?Sized,
impl<T> AbiEnumVisitor for Twhere T: Serialize + ?Sized,
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.