hyperlane_plugin_auth/type.rs
1use super::*;
2
3/// Boxed `Send` future returned by an async [`Authenticator`].
4pub type AuthFuture<'a> =
5 Pin<Box<dyn Future<Output = Result<AuthPrincipal, AuthError>> + Send + 'a>>;
6
7/// Thread-safe shared reference to a pluggable [`Authenticator`].
8pub type SharedAuthenticator = Arc<dyn Authenticator>;