pub trait Handle<N: Network, T>: Request {
// Required method
fn handle(
&self,
peer_id: N::PeerId,
context: &T,
) -> <Self as RequestCommon>::Response;
}Expand description
This trait defines the behaviour when receiving a message and how to generate the response.
Required Methods§
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.