Trait boot_core::ChainState

source ·
pub trait ChainState {
    type Out: StateInterface;

    // Required method
    fn state(&self) -> Self::Out;
}
Expand description

State accessor trait Indicates that the type has access to an underlying state

Required Associated Types§

Required Methods§

source

fn state(&self) -> Self::Out

Implementors§

source§

impl ChainState for Daemon

§

type Out = Rc<DaemonState>

source§

impl<S: StateInterface> ChainState for Mock<S>

§

type Out = Rc<RefCell<S>>