pub struct Choke {
pub height: u64,
pub round: u64,
pub from: UpdateFrom,
}
Expand description
A choke.
Fields
height: u64
The height of the choke.
round: u64
The round of the choke.
from: UpdateFrom
How does state goto the current round.
Trait Implementations
sourceimpl Decodable for Choke
impl Decodable for Choke
sourcefn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
impl Eq for Choke
impl StructuralEq for Choke
impl StructuralPartialEq for Choke
Auto Trait Implementations
impl RefUnwindSafe for Choke
impl Send for Choke
impl Sync for Choke
impl Unpin for Choke
impl UnwindSafe for Choke
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