Skip to main content

RadiusAuthOperations

Trait RadiusAuthOperations 

Source
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§

Source

fn login( &self, username: &str, password: &SecretString, ) -> impl Future<Output = Result<AuthInfo, VaultError>> + Send

Source

fn configure( &self, config: &RadiusConfigRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_config( &self, ) -> impl Future<Output = Result<RadiusConfig, VaultError>> + Send

Source

fn write_user( &self, username: &str, params: &RadiusUserRequest, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

fn read_user( &self, username: &str, ) -> impl Future<Output = Result<RadiusUser, VaultError>> + Send

Source

fn delete_user( &self, username: &str, ) -> impl Future<Output = Result<(), VaultError>> + Send

Source

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.

Implementors§