Enum finality_grandpa::round::Phase
source · [−]pub enum Phase {
Prevote,
Precommit,
}
Expand description
The (voting) phases of a round, each corresponding to the type of votes cast in that phase.
Variants
Prevote
The prevote phase in which Prevote
s are cast.
Precommit
The precommit phase in which Precommit
s are cast.
Trait Implementations
impl Copy for Phase
impl Eq for Phase
impl StructuralEq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnwindSafe for Phase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more