Trait cold_io::State [−][src]
pub trait State<R, W> where
R: ReadOnce,
W: WriteOnce, {
type Ext;
type Rng;
fn accept(
&mut self,
proposal: Proposal<R, W, Self::Ext, Self::Rng>
) -> Request;
}
Expand description
The deterministic state machine. It accepts proposals from network and issues requests. All business logic should be implemented inside.