pub enum TokenAuthEvent<S> {
Continue {
conn: Conn<S, TokenResponse>,
token: Bytes,
},
Ok(Conn<S, AwaitingStartupReady>),
Error {
conn: Conn<S, Terminated>,
error: DiagnosticResponse,
},
}Expand description
An external choice during GSS, SSPI, or Kerberos token exchange.
Variants§
Continue
The backend supplied another token.
Fields
§
conn: Conn<S, TokenResponse>Connection waiting for the next client token.
Ok(Conn<S, AwaitingStartupReady>)
The backend confirmed authentication.
Error
The backend rejected authentication.
Fields
§
conn: Conn<S, Terminated>Terminated connection.
§
error: DiagnosticResponseBackend diagnostic describing the failure.
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for TokenAuthEvent<S>
impl<S> RefUnwindSafe for TokenAuthEvent<S>where
S: RefUnwindSafe,
impl<S> Send for TokenAuthEvent<S>where
S: Send,
impl<S> Sync for TokenAuthEvent<S>where
S: Sync,
impl<S> Unpin for TokenAuthEvent<S>where
S: Unpin,
impl<S> UnsafeUnpin for TokenAuthEvent<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for TokenAuthEvent<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