Skip to main content

Mechanism

Trait Mechanism 

Source
pub trait Mechanism {
    // Required methods
    fn name(&self) -> &str;
    fn respond(&mut self, payload: &[u8]) -> Result<Response, MechanismError>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn respond(&mut self, payload: &[u8]) -> Result<Response, MechanismError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Mechanism for Anonymous

Available on crate feature anonymous only.
Source§

impl<S, P> Mechanism for Scram<S, P>

Available on crate feature scram only.
Source§

impl<V: Validator<Plain>> Mechanism for Plain<V>