#[non_exhaustive]pub enum ClientAuthenticationChallenge {
CleartextPassword,
Md5Password([u8; 4]),
Sasl(Vec<Bytes>),
SaslContinue(Bytes),
SaslFinal(Bytes),
Gss,
Sspi,
KerberosV5,
TokenContinue(Bytes),
}Expand description
An authentication request offered by a PostgreSQL server.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CleartextPassword
The server requested a cleartext password response.
Md5Password([u8; 4])
The server requested a PostgreSQL MD5 password response.
Sasl(Vec<Bytes>)
The server offered SASL mechanisms.
SaslContinue(Bytes)
The server supplied another SASL challenge.
SaslFinal(Bytes)
The server supplied the SASL verifier.
Gss
The server requested an opaque GSS token.
Sspi
The server requested an opaque SSPI token.
KerberosV5
The server requested Kerberos V5 authentication.
TokenContinue(Bytes)
The server supplied another opaque token challenge.
Trait Implementations§
Source§impl Clone for ClientAuthenticationChallenge
impl Clone for ClientAuthenticationChallenge
Source§fn clone(&self) -> ClientAuthenticationChallenge
fn clone(&self) -> ClientAuthenticationChallenge
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 moreimpl Eq for ClientAuthenticationChallenge
impl StructuralPartialEq for ClientAuthenticationChallenge
Auto Trait Implementations§
impl !Freeze for ClientAuthenticationChallenge
impl RefUnwindSafe for ClientAuthenticationChallenge
impl Send for ClientAuthenticationChallenge
impl Sync for ClientAuthenticationChallenge
impl Unpin for ClientAuthenticationChallenge
impl UnsafeUnpin for ClientAuthenticationChallenge
impl UnwindSafe for ClientAuthenticationChallenge
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