DataProcessor

Trait DataProcessor 

Source
pub trait DataProcessor {
    type Type: Sized;

    // Required method
    fn process(
        &self,
        response: Response,
    ) -> impl Future<Output = Result<Self::Type, Error>>;
}
Expand description

Processing data returned by a request.

Required Associated Types§

Required Methods§

Source

fn process( &self, response: Response, ) -> impl Future<Output = Result<Self::Type, Error>>

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§