pub trait Service: Protocol + From<<Self as Protocol>::Checkpoint> {
// Required methods
fn predict(
&self,
request: &<Self as Protocol>::Request,
) -> <Self as Protocol>::Prediction;
fn checkpoint(&self) -> <Self as Protocol>::Checkpoint;
fn invoke(
&mut self,
request: &<Self as Protocol>::Request,
prediction: &<Self as Protocol>::Prediction,
) -> <Self as Protocol>::Reply;
}Required Methods§
fn predict( &self, request: &<Self as Protocol>::Request, ) -> <Self as Protocol>::Prediction
fn checkpoint(&self) -> <Self as Protocol>::Checkpoint
fn invoke( &mut self, request: &<Self as Protocol>::Request, prediction: &<Self as Protocol>::Prediction, ) -> <Self as Protocol>::Reply
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.