HttpResponseBuilderExt

Trait HttpResponseBuilderExt 

Source
pub trait HttpResponseBuilderExt: Sealed {
    // Required method
    fn event<'async_trait>(
        self,
        event: Event,
    ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, Error>> + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Extension Trait for HttpResponseBuilder which acts as a wrapper for the function event_to_response().

This trait is sealed and cannot be implemented for types outside of this crate.

Required Methods§

Source

fn event<'async_trait>( self, event: Event, ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, Error>> + 'async_trait>>
where Self: 'async_trait,

Fill this HttpResponseBuilder with an Event.

Implementations on Foreign Types§

Source§

impl HttpResponseBuilderExt for HttpResponseBuilder

Source§

fn event<'async_trait>( self, event: Event, ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, Error>> + 'async_trait>>
where Self: 'async_trait,

Implementors§