pub struct EndpointMiddleware {
pub handler: EndpointMiddlewareHandler,
}Fields§
§handler: EndpointMiddlewareHandlerImplementations§
Source§impl EndpointMiddleware
impl EndpointMiddleware
pub fn new<F>(handler: F) -> Selfwhere
F: for<'a> Fn(&'a AuthContext, &'a ApiRequest) -> EndpointMiddlewareFuture<'a> + Send + Sync + 'static,
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EndpointMiddleware
impl !UnwindSafe for EndpointMiddleware
impl Freeze for EndpointMiddleware
impl Send for EndpointMiddleware
impl Sync for EndpointMiddleware
impl Unpin for EndpointMiddleware
impl UnsafeUnpin for EndpointMiddleware
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