pub trait State<R, W>{
type Ext;
type Rng;
// Required method
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.