pub enum Authentication {
Ok,
KerberosV5,
CleartextPassword,
Md5Password {
salt: [u8; 4],
},
Gss,
GssContinue(Bytes),
Sspi,
Sasl {
mechanisms: Vec<Bytes>,
},
SaslContinue(Bytes),
SaslFinal(Bytes),
}Expand description
Backend authentication request or continuation message.
Variants§
Ok
Authentication completed successfully.
KerberosV5
Requests Kerberos V5 authentication.
CleartextPassword
Requests a cleartext password response.
Md5Password
Requests a PostgreSQL MD5 password response.
Gss
Begins a GSSAPI token exchange.
GssContinue(Bytes)
Continues a GSSAPI token exchange with a server token.
Sspi
Begins an SSPI token exchange.
Sasl
Offers SASL authentication mechanisms.
SaslContinue(Bytes)
Carries a SASL server-first challenge.
SaslFinal(Bytes)
Carries the SASL server-final message.
Trait Implementations§
Source§impl Clone for Authentication
impl Clone for Authentication
Source§fn clone(&self) -> Authentication
fn clone(&self) -> Authentication
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Authentication
impl Debug for Authentication
impl Eq for Authentication
Source§impl PartialEq for Authentication
impl PartialEq for Authentication
impl StructuralPartialEq for Authentication
Auto Trait Implementations§
impl !Freeze for Authentication
impl RefUnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnsafeUnpin for Authentication
impl UnwindSafe for Authentication
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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