pub trait RadiusAuthOperations: Send + Sync {
// Required methods
fn login(
&self,
username: &str,
password: &SecretString,
) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send;
fn configure(
&self,
config: &RadiusConfigRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_config(
&self,
) -> impl Future<Output = Result<RadiusConfig, VaultError>> + Send;
fn write_user(
&self,
username: &str,
params: &RadiusUserRequest,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn read_user(
&self,
username: &str,
) -> impl Future<Output = Result<RadiusUser, VaultError>> + Send;
fn delete_user(
&self,
username: &str,
) -> impl Future<Output = Result<(), VaultError>> + Send;
fn list_users(
&self,
) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send;
}Required Methods§
fn login( &self, username: &str, password: &SecretString, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send
fn configure( &self, config: &RadiusConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_config( &self, ) -> impl Future<Output = Result<RadiusConfig, VaultError>> + Send
fn write_user( &self, username: &str, params: &RadiusUserRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn read_user( &self, username: &str, ) -> impl Future<Output = Result<RadiusUser, VaultError>> + Send
fn delete_user( &self, username: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send
fn list_users( &self, ) -> impl Future<Output = Result<Vec<String>, VaultError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.