15 lines
251 B
Rust
15 lines
251 B
Rust
//! Provides the SASL "ANONYMOUS" mechanism.
|
|
|
|
use sasl::SaslMechanism;
|
|
|
|
pub struct Anonymous;
|
|
|
|
impl Anonymous {
|
|
pub fn new() -> Anonymous {
|
|
Anonymous
|
|
}
|
|
}
|
|
|
|
impl SaslMechanism for Anonymous {
|
|
fn name(&self) -> &str { "ANONYMOUS" }
|
|
}
|