1 2 3 4 5 6 7 8 9
use super::route_match::RouteMatch; pub enum GuardAction { Allow, Deny, Redirect(String), } pub(crate) type GuardFn = dyn Fn(&RouteMatch) -> GuardAction + Send + Sync;