Trait sasl::SaslMechanism [] [src]

pub trait SaslMechanism {
    fn name(&self) -> &str;
    fn from_credentials(credentials: SaslCredentials) -> Result<Self, String> where Self: Sized;

    fn initial(&mut self) -> Result<Vec<u8>, String> { ... }
    fn response(&mut self, _challenge: &[u8]) -> Result<Vec<u8>, String> { ... }
    fn success(&mut self, _data: &[u8]) -> Result<(), String> { ... }
}

Required Methods

The name of the mechanism.

Creates this mechanism from SaslCredentials.

Provided Methods

Provides initial payload of the SASL mechanism.

Creates a response to the SASL challenge.

Verifies the server success response, if there is one.

Implementors