Trait salvo::Writer[][src]

pub trait Writer {
    #[must_use = "write future must be used"]
    #[must_use]
    pub 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 = ()> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use = "write future must be used"]
#[must_use]
pub 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 = ()> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl Writer for String[src]

impl<T, E> Writer for Result<T, E> where
    E: Writer + Send,
    T: Writer + Send
[src]

impl<'a> Writer for &'a String[src]

impl Writer for ()[src]

impl<'a> Writer for &'a str[src]

Loading content...

Implementors

impl Writer for ReadError[src]

impl Writer for salvo::anyhow::Error[src]

impl Writer for NamedFile[src]

impl Writer for HttpError[src]

impl Writer for salvo::Error[src]

impl<T> Writer for HtmlText<T> where
    T: AsRef<str> + Send
[src]

impl<T> Writer for JsonText<T> where
    T: Serialize + Send
[src]

impl<T> Writer for PlainText<T> where
    T: AsRef<str> + Send
[src]

Loading content...