Struct mould_auth::AuthService [] [src]

pub struct AuthService<C, R, E> where C: CredentialChecker<R, E>, R: Role, E: Error { /* fields omitted */ }

A handler which use CredentialChecker to set role to session. The following actions available: * do-auth - try to authorize by credential

Methods

impl<C, R, E> AuthService<C, R, E> where C: CredentialChecker<R, E>, R: Role, E: Error
[src]

Trait Implementations

impl<T, C, R, E> Service<T> for AuthService<C, R, E> where T: Authorize<R>, C: CredentialChecker<R, E> + Send + 'static, R: Role + Send + Sync + 'static, E: Error + Send + Sync + 'static
[src]

Never return error, but rejecting Worker created