[][src]Struct tendermint::consensus::state::State

pub struct State {
    pub height: Height,
    pub round: i64,
    pub step: i8,
    pub block_id: Option<Id>,
}

Tendermint consensus state

Fields

height: Height

Current block height

round: i64

Current consensus round

step: i8

Current consensus step

block_id: Option<Id>

Block ID being proposed (if available)

Methods

impl State[src]

pub fn block_id_prefix(&self) -> String[src]

Get short prefix of the block ID for debugging purposes (ala git)

Trait Implementations

impl Clone for State[src]

impl Default for State[src]

impl Eq for State[src]

impl Ord for State[src]

impl PartialEq<State> for State[src]

impl PartialOrd<State> for State[src]

impl Display for State[src]

impl Debug for State[src]

impl Serialize for State[src]

impl<'de> Deserialize<'de> for State[src]

Auto Trait Implementations

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

impl RefUnwindSafe for State

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Typeable for T where
    T: Any