pub trait EncodeRequest<In, Out, R> {
type VerifyEncode;
// Required methods
fn fetch_client(
&self,
ctx: ClientRequest,
data: In,
map: fn(In) -> Out,
) -> impl Future<Output = Result<R, RequestError>> + 'static;
fn verify_can_serialize(&self) -> Self::VerifyEncode;
}Required Associated Types§
type VerifyEncode
Required Methods§
fn fetch_client( &self, ctx: ClientRequest, data: In, map: fn(In) -> Out, ) -> impl Future<Output = Result<R, RequestError>> + 'static
fn verify_can_serialize(&self) -> Self::VerifyEncode
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.