sasl::server

Trait Validator

Source
pub trait Validator<S: Secret> {
    // Required method
    fn validate(
        &self,
        identity: &Identity,
        value: &S,
    ) -> Result<(), ValidatorError>;
}

Required Methods§

Source

fn validate(&self, identity: &Identity, value: &S) -> Result<(), ValidatorError>

Implementors§