pub trait Inbox<P>where
P: Protocol,{
// Required methods
fn push_prepare(&mut self, message: Prepare<P::Request, P::Prediction>);
fn push_prepare_ok(&mut self, message: PrepareOk);
fn push_commit(&mut self, message: Commit);
fn push_get_state(&mut self, message: GetState);
fn push_new_state(&mut self, message: NewState<P::Request, P::Prediction>);
fn push_start_view_change(&mut self, message: StartViewChange);
fn push_do_view_change(
&mut self,
message: DoViewChange<P::Request, P::Prediction>,
);
fn push_start_view(&mut self, message: StartView<P::Request, P::Prediction>);
fn push_recovery(&mut self, message: Recovery);
fn push_recovery_response(
&mut self,
message: RecoveryResponse<P::Request, P::Prediction>,
);
}Required Methods§
fn push_prepare(&mut self, message: Prepare<P::Request, P::Prediction>)
fn push_prepare_ok(&mut self, message: PrepareOk)
fn push_commit(&mut self, message: Commit)
fn push_get_state(&mut self, message: GetState)
fn push_new_state(&mut self, message: NewState<P::Request, P::Prediction>)
fn push_start_view_change(&mut self, message: StartViewChange)
fn push_do_view_change( &mut self, message: DoViewChange<P::Request, P::Prediction>, )
fn push_start_view(&mut self, message: StartView<P::Request, P::Prediction>)
fn push_recovery(&mut self, message: Recovery)
fn push_recovery_response( &mut self, message: RecoveryResponse<P::Request, P::Prediction>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".