clean up SASL code
This commit is contained in:
parent
61e8124c75
commit
74fb4fd9ad
5 changed files with 70 additions and 60 deletions
15
src/sasl/mechanisms/anonymous.rs
Normal file
15
src/sasl/mechanisms/anonymous.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
//! Provides the SASL "ANONYMOUS" mechanism.
|
||||
|
||||
use sasl::SaslMechanism;
|
||||
|
||||
pub struct Anonymous;
|
||||
|
||||
impl Anonymous {
|
||||
pub fn new() -> Anonymous {
|
||||
Anonymous
|
||||
}
|
||||
}
|
||||
|
||||
impl SaslMechanism for Anonymous {
|
||||
fn name() -> &'static str { "ANONYMOUS" }
|
||||
}
|
||||
Loading…
Reference in a new issue