pub type Guard<S> = Arc<dyn Fn(&Request, &ConnectionInfo, &S) -> Result<(), Response> + Sync + Send>;Expand description
A route guard: Ok(()) lets the request through, Err(response)
answers it (a redirect to the login page, a 401, a 403).
Aliased Typeยง
pub struct Guard<S> { /* private fields */ }