Struct salvo_extra::basic_auth::BasicAuth
source · pub struct BasicAuth<V: BasicAuthValidator> { /* private fields */ }
Available on crate feature
basic-auth
only.Expand description
BasicAuth
Implementations§
Trait Implementations§
source§impl<V> Handler for BasicAuth<V>where
V: BasicAuthValidator + 'static,
impl<V> Handler for BasicAuth<V>where
V: BasicAuthValidator + 'static,
source§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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Handle http request.
source§fn hoop<H>(self, hoop: H) -> HoopedHandler
fn hoop<H>(self, hoop: H) -> HoopedHandler
Hoop this handler with middleware.
Auto Trait Implementations§
impl<V> Freeze for BasicAuth<V>where
V: Freeze,
impl<V> RefUnwindSafe for BasicAuth<V>where
V: RefUnwindSafe,
impl<V> Send for BasicAuth<V>
impl<V> Sync for BasicAuth<V>
impl<V> Unpin for BasicAuth<V>where
V: Unpin,
impl<V> UnwindSafe for BasicAuth<V>where
V: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more