Enum overlord::types::ViewChangeReason
source · [−]pub enum ViewChangeReason {
NoProposalFromNetwork,
NoPrevoteQCFromNetwork,
NoPrecommitQCFromNetwork,
CheckBlockNotPass,
UpdateFromHigherPrevoteQC(u64, u64),
UpdateFromHigherPrecommitQC(u64, u64),
UpdateFromHigherChokeQC(u64, u64),
LeaderReceivedVoteBelowThreshold(VoteType),
Others,
}
Expand description
The reason of overlord view change.
Variants
NoProposalFromNetwork
NoPrevoteQCFromNetwork
NoPrecommitQCFromNetwork
CheckBlockNotPass
UpdateFromHigherPrevoteQC(u64, u64)
UpdateFromHigherPrecommitQC(u64, u64)
UpdateFromHigherChokeQC(u64, u64)
LeaderReceivedVoteBelowThreshold(VoteType)
Others
Trait Implementations
sourceimpl Clone for ViewChangeReason
impl Clone for ViewChangeReason
sourcefn clone(&self) -> ViewChangeReason
fn clone(&self) -> ViewChangeReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ViewChangeReason
impl Debug for ViewChangeReason
sourceimpl<'de> Deserialize<'de> for ViewChangeReason
impl<'de> Deserialize<'de> for ViewChangeReason
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
sourceimpl Display for ViewChangeReason
impl Display for ViewChangeReason
sourceimpl Serialize for ViewChangeReason
impl Serialize for ViewChangeReason
Auto Trait Implementations
impl RefUnwindSafe for ViewChangeReason
impl Send for ViewChangeReason
impl Sync for ViewChangeReason
impl Unpin for ViewChangeReason
impl UnwindSafe for ViewChangeReason
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