[][src]Trait salvo_core::writer::Writer

pub trait Writer: Send {
#[must_use = "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 = ()> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use = "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 = ()> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl Writer for ()[src]

Loading content...

Implementors

impl Writer for HttpError[src]

impl Writer for NamedFile[src]

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

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

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

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

Loading content...