pub trait BlockingScalarHandler<M>where
M: BlockingScalar,
Self: Server,{
// Required method
fn handle(
&mut self,
msg: M,
sender: PID,
context: &mut ServerContext<Self>,
) -> M::Response;
}Expand description
handle scalar messages synchronously
Required Methods§
Sourcefn handle(
&mut self,
msg: M,
sender: PID,
context: &mut ServerContext<Self>,
) -> M::Response
fn handle( &mut self, msg: M, sender: PID, context: &mut ServerContext<Self>, ) -> M::Response
process message and return response immediately
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.