Trait CogResponse

Source
pub trait CogResponse: Send {
    // Required method
    fn into_response<'async_trait>(
        self,
        request: Request,
    ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

A response from a cog

Required Methods§

Source

fn into_response<'async_trait>( self, request: Request, ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§

Source§

impl<T> CogResponse for T
where T: Serialize + Send + 'static,