pub trait Request: MessageBounds {
type Response;
// Required method
fn reply(&self, resp: Self::Response);
}Expand description
A marker trait for messags that expect a response
Messages with this trait can be replied to.
Required Associated Types§
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.