Trait ResponseExt

Source
pub trait ResponseExt: Sized {
    // Required method
    fn try_from_response<'async_trait, T, E>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<TypedResponse<T, E>>> + Send + 'async_trait>>
       where T: DeserializeOwned + Send + 'async_trait,
             E: DeserializeOwned + From<Error> + Send + 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn try_from_response<'async_trait, T, E>( self, ) -> Pin<Box<dyn Future<Output = Result<TypedResponse<T, E>>> + Send + 'async_trait>>
where T: DeserializeOwned + Send + 'async_trait, E: DeserializeOwned + From<Error> + Send + 'async_trait, Self: 'async_trait,

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.

Implementations on Foreign Types§

Source§

impl ResponseExt for Response

Source§

fn try_from_response<'async_trait, T, E>( self, ) -> Pin<Box<dyn Future<Output = Result<TypedResponse<T, E>>> + Send + 'async_trait>>
where T: DeserializeOwned + Send + 'async_trait, E: DeserializeOwned + From<Error> + Send + 'async_trait, Self: 'async_trait,

Implementors§