Trait ResponseWriter

Source
pub trait ResponseWriter: Sized {
    // Required method
    fn write_response<'life0, 'async_trait, R>(
        self,
        response: &'life0 Response<R>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where R: 'async_trait + Serialize,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn write_response<'life0, 'async_trait, R>( self, response: &'life0 Response<R>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where R: 'async_trait + Serialize, Self: 'async_trait, 'life0: '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.

Implementors§