pub trait AuthoritiesExtractor<'a, Request, Type, Error> {
    type Future: Future<Output = Result<HashSet<Type>, Error>> + Send;

    // Required method
    fn extract(&self, request: &'a mut Request) -> Self::Future;
}

Required Associated Types§

source

type Future: Future<Output = Result<HashSet<Type>, Error>> + Send

Required Methods§

source

fn extract(&self, request: &'a mut Request) -> Self::Future

Implementors§

source§

impl<'a, F, O, Request, Type, Error> AuthoritiesExtractor<'a, Request, Type, Error> for F
where F: Fn(&'a mut Request) -> O, Request: 'a, O: Future<Output = Result<HashSet<Type>, Error>> + Send, Type: Eq + Hash + 'static,

§

type Future = O