EncodeRequest

Trait EncodeRequest 

Source
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§

Required Methods§

Source

fn fetch_client( &self, ctx: ClientRequest, data: In, map: fn(In) -> Out, ) -> impl Future<Output = Result<R, RequestError>> + 'static

Source

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.

Implementors§