Skip to main content

AsyncEndpointHandler

Type Alias AsyncEndpointHandler 

Source
pub type AsyncEndpointHandler = Arc<dyn for<'a> Fn(&'a AuthContext, Request<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, OpenAuthError>> + Send + 'a>> + Send + Sync>;

Aliased Typeยง

pub struct AsyncEndpointHandler { /* private fields */ }