pub enum TendermintMessageType {
Proposal {
height: u64,
round: u32,
block_hash: String,
proposer: String,
timestamp: DateTime<Utc>,
signature: String,
},
Prevote {
height: u64,
round: u32,
block_hash: Option<String>,
validator: String,
signature: String,
},
Precommit {
height: u64,
round: u32,
block_hash: Option<String>,
validator: String,
signature: String,
},
ValidatorSet {
validators: Vec<ValidatorInfo>,
height: u64,
},
BlockCommit {
height: u64,
block_hash: String,
commit_signatures: Vec<String>,
timestamp: DateTime<Utc>,
},
}
Expand description
Tendermint consensus message types
Variants§
Trait Implementations§
Source§impl Clone for TendermintMessageType
impl Clone for TendermintMessageType
Source§fn clone(&self) -> TendermintMessageType
fn clone(&self) -> TendermintMessageType
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 TendermintMessageType
impl Debug for TendermintMessageType
Source§impl<'de> Deserialize<'de> for TendermintMessageType
impl<'de> Deserialize<'de> for TendermintMessageType
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 TendermintMessageType
impl PartialEq for TendermintMessageType
Source§impl Serialize for TendermintMessageType
impl Serialize for TendermintMessageType
impl StructuralPartialEq for TendermintMessageType
Auto Trait Implementations§
impl Freeze for TendermintMessageType
impl RefUnwindSafe for TendermintMessageType
impl Send for TendermintMessageType
impl Sync for TendermintMessageType
impl Unpin for TendermintMessageType
impl UnwindSafe for TendermintMessageType
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