pub trait ScalarEventHandler<M>where
Self: Server,
M: ScalarEvent,{
// Required method
fn handle(&mut self, msg: M, sender: PID, context: &mut ServerContext<Self>);
}Expand description
Handler for an incoming ScalarEvent
Required Methods§
fn handle(&mut self, msg: M, sender: PID, context: &mut ServerContext<Self>)
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.