Trait anansi::forms::ToEmpty

source ·
pub trait ToEmpty<B>: Formwhere
    B: BaseRequest,{
    // Provided methods
    fn on_get<'life0, 'async_trait>(
        _req: &'life0 B
    ) -> Pin<Box<dyn Future<Output = Result<Self, Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             Self: Sized + Send + 'async_trait { ... }
    fn on_post<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _data: Self::Data,
        _req: &'life1 B
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self::Data: Send + Sync,
             Self: Send + 'async_trait { ... }
}

Provided Methods§

source

fn on_get<'life0, 'async_trait>( _req: &'life0 B ) -> Pin<Box<dyn Future<Output = Result<Self, Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: Sized + Send + 'async_trait,

source

fn on_post<'life0, 'life1, 'async_trait>( &'life0 mut self, _data: Self::Data, _req: &'life1 B ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Sync + Send + 'static, Global>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Self::Data: Send + Sync, Self: Send + 'async_trait,

Implementors§

source§

impl<B> ToEmpty<B> for EmptyFormwhere B: BaseRequest,