pub enum AuthenticationMessage<'a> {
Ok,
KerberosV5,
CleartextPassword,
Md5Password {
salt: [u8; 4],
},
Gss,
GssContinue {
data: &'a [u8],
},
Sspi,
Sasl {
mechanisms: Vec<&'a str>,
},
SaslContinue {
data: &'a [u8],
},
SaslFinal {
data: &'a [u8],
},
}Expand description
Authentication message from the server.
Variants§
Ok
Authentication successful
KerberosV5
Kerberos V5 authentication required
CleartextPassword
Cleartext password required
Md5Password
MD5 password required (with 4-byte salt)
Gss
GSS authentication
GssContinue
GSS continue (with additional data)
Sspi
SSPI authentication
Sasl
SASL authentication required (with list of mechanisms)
SaslContinue
SASL continue (with server-first-message)
SaslFinal
SASL final (with server-final-message)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AuthenticationMessage<'a>
impl<'a> RefUnwindSafe for AuthenticationMessage<'a>
impl<'a> Send for AuthenticationMessage<'a>
impl<'a> Sync for AuthenticationMessage<'a>
impl<'a> Unpin for AuthenticationMessage<'a>
impl<'a> UnwindSafe for AuthenticationMessage<'a>
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