pub struct LazyIocMiddleware { /* private fields */ }
Expand description
Wrapper middleware that lazily creates IoC-enabled middleware per request
Implementations§
Source§impl LazyIocMiddleware
impl LazyIocMiddleware
Sourcepub fn new(middleware_name: String, registry: Arc<MiddlewareRegistry>) -> Self
pub fn new(middleware_name: String, registry: Arc<MiddlewareRegistry>) -> Self
Create new lazy IoC middleware
Trait Implementations§
Source§impl Debug for LazyIocMiddleware
impl Debug for LazyIocMiddleware
Source§impl Middleware for LazyIocMiddleware
impl Middleware for LazyIocMiddleware
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 LazyIocMiddleware
impl !RefUnwindSafe for LazyIocMiddleware
impl Send for LazyIocMiddleware
impl Sync for LazyIocMiddleware
impl Unpin for LazyIocMiddleware
impl !UnwindSafe for LazyIocMiddleware
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