pub enum AuthOffer<S> {
Ok(Conn<S, AwaitingStartupReady>),
Cleartext(Conn<S, PasswordResponse>),
Md5 {
conn: Conn<S, PasswordResponse>,
salt: [u8; 4],
},
Sasl {
conn: Conn<S, SaslInitial>,
mechanisms: Vec<Bytes>,
},
Gss(Conn<S, TokenResponse>),
Sspi(Conn<S, TokenResponse>),
KerberosV5(Conn<S, TokenResponse>),
}Expand description
External choice offered by the backend during authentication.
Variants§
Ok(Conn<S, AwaitingStartupReady>)
Authentication completed without a credential exchange.
Cleartext(Conn<S, PasswordResponse>)
The backend requested a cleartext password.
Md5
The backend requested a PostgreSQL MD5 password response.
Fields
§
conn: Conn<S, PasswordResponse>Connection waiting for the password response.
Sasl
The backend offered a SASL mechanism negotiation.
Fields
§
conn: Conn<S, SaslInitial>Connection waiting for mechanism selection.
Gss(Conn<S, TokenResponse>)
The backend requested GSSAPI authentication.
Sspi(Conn<S, TokenResponse>)
The backend requested SSPI authentication.
KerberosV5(Conn<S, TokenResponse>)
The backend requested Kerberos V5 authentication.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for AuthOffer<S>where
S: Freeze,
impl<S> RefUnwindSafe for AuthOffer<S>where
S: RefUnwindSafe,
impl<S> Send for AuthOffer<S>where
S: Send,
impl<S> Sync for AuthOffer<S>where
S: Sync,
impl<S> Unpin for AuthOffer<S>where
S: Unpin,
impl<S> UnsafeUnpin for AuthOffer<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AuthOffer<S>where
S: UnwindSafe,
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