pub struct EndpointMiddleware {
pub handler: Arc<dyn for<'a> Fn(&'a AuthContext, &'a Request<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Option<Response<Vec<u8>>>, OpenAuthError>> + Send + 'a>> + Sync + Send>,
}Fields§
§handler: Arc<dyn for<'a> Fn(&'a AuthContext, &'a Request<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Option<Response<Vec<u8>>>, OpenAuthError>> + Send + 'a>> + Sync + Send>Implementations§
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