pub struct SimpleAuthMiddleware { /* private fields */ }
Expand description
Example auth middleware using the new pattern
Implementations§
Trait Implementations§
Source§impl Debug for SimpleAuthMiddleware
impl Debug for SimpleAuthMiddleware
Source§impl Middleware for SimpleAuthMiddleware
impl Middleware for SimpleAuthMiddleware
Source§fn handle(&self, request: ElifRequest, next: Next) -> NextFuture<'static>
fn handle(&self, request: ElifRequest, next: Next) -> NextFuture<'static>
Handle the request and call the next middleware in the chain
Auto Trait Implementations§
impl Freeze for SimpleAuthMiddleware
impl RefUnwindSafe for SimpleAuthMiddleware
impl Send for SimpleAuthMiddleware
impl Sync for SimpleAuthMiddleware
impl Unpin for SimpleAuthMiddleware
impl UnwindSafe for SimpleAuthMiddleware
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