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

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

Required Associated Types§

source

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

Required Methods§

source

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

Implementors§

source§

impl<'a, F, O, Type> PermissionsExtractor<'a, &ServiceRequest, Type> for F
where F: Fn(&'a ServiceRequest) -> O, O: Future<Output = Result<Vec<Type>, Error>>, Type: PartialEq + Clone + 'static,

§

type Future = O

source§

impl<'a, F, O, Type> PermissionsExtractor<'a, &mut ServiceRequest, Type> for F
where F: Fn(&'a mut ServiceRequest) -> O, O: Future<Output = Result<Vec<Type>, Error>>, Type: PartialEq + Clone + 'static,

§

type Future = O