Skip to main content

AsyncLocaleResolver

Type Alias AsyncLocaleResolver 

Source
pub type AsyncLocaleResolver = Arc<dyn for<'a> Fn(&'a AuthContext, &'a ApiRequest) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'a>> + Send + Sync>;
Expand description

Async resolver for locale from the incoming request (callback strategy on async router paths).

Aliased Typeยง

pub struct AsyncLocaleResolver { /* private fields */ }