Struct salvo_extra::jwt_auth::JwtAuthHandler [−][src]
pub struct JwtAuthHandler<C> { /* fields omitted */ }
Expand description
JwtAuthHandler, used as middleware.
Implementations
Create new JwtAuthHandler
.
Get response_error value.
Set response_error value and return Self.
Get secret mutable reference.
Set secret with new value and return Self.
Get extractor list reference.
Get extractor list mutable reference.
Set extractor list with new value and return Self.
Trait Implementations
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
req: &'life1 mut Request,
depot: &'life2 mut Depot,
res: &'life3 mut Response,
ctrl: &'life4 mut FlowCtrl
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Handle http request.
Auto Trait Implementations
impl<C> !RefUnwindSafe for JwtAuthHandler<C>
impl<C> Send for JwtAuthHandler<C> where
C: Send,
impl<C> Sync for JwtAuthHandler<C> where
C: Sync,
impl<C> Unpin for JwtAuthHandler<C> where
C: Unpin,
impl<C> !UnwindSafe for JwtAuthHandler<C>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more