pub trait Request {
type Response;
// Required methods
fn proc<P: DeserializeOwned>(&self) -> Result<P>;
fn respond<V: Serialize>(self, value: V) -> Result<Self::Response>;
}
Required Associated Types§
Required Methods§
fn proc<P: DeserializeOwned>(&self) -> Result<P>
fn respond<V: Serialize>(self, value: V) -> Result<Self::Response>
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.