Trait salvo::Writer [−][src]
pub trait Writer {
fn write<'life0, 'life1, 'life2, 'async_trait>(
self,
req: &'life0 mut Request,
depot: &'life1 mut Depot,
res: &'life2 mut Response
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
Writer is used to write data to response.
Required methods
Write data to Respone
.