pub enum VoteType {
Prevote,
Precommit,
}
Expand description
Vote or QC types. Prevote and precommit QC will promise the rightness and the final consistency of overlord consensus protocol.
Variants
Prevote
Prevote vote or QC.
Precommit
Precommit Vote or QC.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for VoteType
impl<'de> Deserialize<'de> for VoteType
sourcefn 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 VoteType
impl StructuralEq for VoteType
impl StructuralPartialEq for VoteType
Auto Trait Implementations
impl RefUnwindSafe for VoteType
impl Send for VoteType
impl Sync for VoteType
impl Unpin for VoteType
impl UnwindSafe for VoteType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more