pub enum Mechanism {
Plain,
Login,
Xoauth2,
}
Expand description
Represents authentication mechanisms
Variants§
Plain
PLAIN authentication mechanism RFC 4616: https://tools.ietf.org/html/rfc4616
Login
LOGIN authentication mechanism Obsolete but needed for some providers (like office365) https://www.ietf.org/archive/id/draft-murchison-sasl-login-00.txt
Xoauth2
Non-standard XOAUTH2 mechanism https://developers.google.com/gmail/imap/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