[][src]Function safe_authenticator::run

pub fn run<F, I, T>(authenticator: &Authenticator, f: F) -> Result<T, AuthError> where
    F: FnOnce(&AuthClient) -> I + Send + 'static,
    I: IntoFuture<Item = T, Error = AuthError> + 'static,
    T: Send + 'static, 

Run the given closure inside the event loop of the authenticator. The closure should return a future which will then be driven to completion and its result returned.