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.