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

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

Required Associated Types§

source

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

Required Methods§

source

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

Implementors§

source§

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

§

type Future = O

source§

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

§

type Future = O