pub enum Mechanism {
Plain,
Login,
Xoauth2,
}
Expand description
Represents authentication mechanisms
Variants§
Plain
PLAIN authentication mechanism, defined in RFC 4616
Login
LOGIN authentication mechanism Obsolete but needed for some providers (like office365)
Defined in draft-murchison-sasl-login-00.
Xoauth2
Non-standard XOAUTH2 mechanism, defined in xoauth2-protocol
Implementations§
Trait Implementations§
impl Copy for Mechanism
impl Eq for Mechanism
impl StructuralPartialEq for Mechanism
Auto Trait Implementations§
impl Freeze for Mechanism
impl RefUnwindSafe for Mechanism
impl Send for Mechanism
impl Sync for Mechanism
impl Unpin for Mechanism
impl UnwindSafe for Mechanism
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more