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§
Source§impl Clone for EndpointMiddleware
impl Clone for EndpointMiddleware
Source§fn clone(&self) -> EndpointMiddleware
fn clone(&self) -> EndpointMiddleware
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EndpointMiddleware
impl !RefUnwindSafe for EndpointMiddleware
impl Send for EndpointMiddleware
impl Sync for EndpointMiddleware
impl Unpin for EndpointMiddleware
impl UnsafeUnpin for EndpointMiddleware
impl !UnwindSafe 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