Struct finality_grandpa::round::State [−][src]
pub struct State<H, N> {
pub prevote_ghost: Option<(H, N)>,
pub finalized: Option<(H, N)>,
pub estimate: Option<(H, N)>,
pub completable: bool,
}State of the round.
Fields
prevote_ghost: Option<(H, N)>The prevote-GHOST block.
finalized: Option<(H, N)>The finalized block.
estimate: Option<(H, N)>The new round-estimate.
completable: boolWhether the round is completable.
Implementations
Trait Implementations
impl<H, N> Decode for State<H, N> where
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode, [src]
impl<H, N> Decode for State<H, N> where
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode,
Option<(H, N)>: Decode, [src]impl<H, N> Encode for State<H, N> where
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode, [src]
impl<H, N> Encode for State<H, N> where
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode, [src]fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)[src]
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
pub fn size_hint(&self) -> usize[src]
pub fn encode(&self) -> Vec<u8, Global>[src]
pub fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R, [src]
F: FnOnce(&[u8]) -> R,
pub fn encoded_size(&self) -> usize[src]
impl<H, N> EncodeLike<State<H, N>> for State<H, N> where
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode, [src]
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
Option<(H, N)>: Encode,
impl<H, N> StructuralPartialEq for State<H, N>[src]
Auto Trait Implementations
impl<H, N> RefUnwindSafe for State<H, N> where
H: RefUnwindSafe,
N: RefUnwindSafe,
H: RefUnwindSafe,
N: RefUnwindSafe,
impl<H, N> Send for State<H, N> where
H: Send,
N: Send,
H: Send,
N: Send,
impl<H, N> Sync for State<H, N> where
H: Sync,
N: Sync,
H: Sync,
N: Sync,
impl<H, N> Unpin for State<H, N> where
H: Unpin,
N: Unpin,
H: Unpin,
N: Unpin,
impl<H, N> UnwindSafe for State<H, N> where
H: UnwindSafe,
N: UnwindSafe,
H: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> DecodeLimit for T where
T: Decode, [src]
impl<T> DecodeLimit for T where
T: Decode, [src]impl<S> Codec for S where
S: Decode + Encode, [src]
S: Decode + Encode,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode, [src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: ToOwned + Encode, [src]
T: ToOwned + Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode, [src]
T: Encode,
impl<S> FullCodec for S where
S: Decode + FullEncode, [src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>, [src]
S: Encode + EncodeLike<S>,