pub trait RequestType: Sized {
type Request: Request;
// Required method
fn borrow(&self) -> &Self::Request;
}
Expand description
Request type trait.
This allows types to implement Request
by a proxy type.
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.