pub trait Request {
type Type: RequestType;
type Response: ResponseType + 'static;
// Required method
fn serialize(&self) -> Result<HttpRequest, Error>;
// Provided method
fn detach(&self) -> DetachedRequest<Self::Response> { ... }
}Required Associated Types§
type Type: RequestType
type Response: ResponseType + 'static
Required Methods§
fn serialize(&self) -> Result<HttpRequest, Error>
Provided Methods§
fn detach(&self) -> DetachedRequest<Self::Response>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".