[][src]Struct tmkms::chain::state::State

pub struct State { /* fields omitted */ }

State tracking for double signing prevention

Methods

impl State[src]

pub fn load_state<P>(path: P) -> Result<State, Error> where
    P: AsRef<Path>, 
[src]

Load the state from the given path

pub fn update_consensus_state(
    &mut self,
    new_state: State
) -> Result<(), StateError>
[src]

Check and update the chain's height, round, and step

pub fn update_from_hook_output(
    &mut self,
    output: Output
) -> Result<(), StateError>
[src]

Update the internal state from the output from a hook command

Auto Trait Implementations

impl Send for State

impl Unpin for State

impl Sync for State

impl UnwindSafe for State

impl RefUnwindSafe for State

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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