pub enum AuthEvent<S> {
Authentication(AuthOffer<S>),
Negotiate {
conn: Conn<S, Auth>,
message: NegotiateProtocolVersion,
},
Error {
conn: Conn<S, Terminated>,
error: DiagnosticResponse,
},
}Expand description
A startup message that advances or terminates authentication.
Variants§
Authentication(AuthOffer<S>)
An authentication request or successful completion.
Negotiate
A protocol-version negotiation message that leaves authentication active.
Fields
§
message: NegotiateProtocolVersionVersion and unsupported-option information supplied by the backend.
Error
Authentication failed and the connection is terminated.
Fields
§
conn: Conn<S, Terminated>Terminated connection.
§
error: DiagnosticResponseBackend diagnostic describing the failure.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for AuthEvent<S>where
S: Freeze,
impl<S> RefUnwindSafe for AuthEvent<S>where
S: RefUnwindSafe,
impl<S> Send for AuthEvent<S>where
S: Send,
impl<S> Sync for AuthEvent<S>where
S: Sync,
impl<S> Unpin for AuthEvent<S>where
S: Unpin,
impl<S> UnsafeUnpin for AuthEvent<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AuthEvent<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