pub enum Vote {
PreVote,
PostVote(u16),
}
Expand description
Enum for pre or post Vote by block
post: major_version >= 18 pre: major_version < 18
Variants
PreVote
Pre vote by block
PostVote(u16)
Post vote by block
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Vote
impl<'de> Deserialize<'de> for Vote
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
Auto Trait Implementations
impl RefUnwindSafe for Vote
impl Send for Vote
impl Sync for Vote
impl Unpin for Vote
impl UnwindSafe for Vote
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