pub struct FnMiddleware(pub fn(Request, Next) -> BoxFuture<Response>);Expand description
Wrap a middleware function pointer generated from middleware.rs.
Tuple Fields§
§0: fn(Request, Next) -> BoxFuture<Response>Trait Implementations§
Auto Trait Implementations§
impl Freeze for FnMiddleware
impl RefUnwindSafe for FnMiddleware
impl Send for FnMiddleware
impl Sync for FnMiddleware
impl Unpin for FnMiddleware
impl UnsafeUnpin for FnMiddleware
impl UnwindSafe for FnMiddleware
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