Trait DecodeRequest

Source
pub trait DecodeRequest<Req, Res>: Sized + Send {
    // Provided methods
    fn decode<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 mut Req,
    ) -> BoxFuture<'async_trait, Result<Option<String>, Res>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn update<'life0, 'life1, 'async_trait>(
        &'life0 self,
        res: &'life1 mut Res,
    ) -> BoxFuture<'async_trait, ()>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn decode2<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 mut Req,
    ) -> LocalBoxFuture<'async_trait, Result<Option<String>, Res>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn update2<'life0, 'life1, 'async_trait>(
        &'life0 self,
        res: &'life1 mut Res,
    ) -> LocalBoxFuture<'async_trait, ()>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

Source

fn decode<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 mut Req, ) -> BoxFuture<'async_trait, Result<Option<String>, Res>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

get user key

Source

fn update<'life0, 'life1, 'async_trait>( &'life0 self, res: &'life1 mut Res, ) -> BoxFuture<'async_trait, ()>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn decode2<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 mut Req, ) -> LocalBoxFuture<'async_trait, Result<Option<String>, Res>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn update2<'life0, 'life1, 'async_trait>( &'life0 self, res: &'life1 mut Res, ) -> LocalBoxFuture<'async_trait, ()>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§