pub enum PgWireConnectionState {
AwaitingSslRequest,
AwaitingStartup,
AuthenticationInProgress,
ReadyForQuery,
QueryInProgress,
CopyInProgress(bool),
AwaitingSync,
}Expand description
States of a PostgreSQL connection lifecycle.
Variants§
AwaitingSslRequest
Waiting for an SSL request from the client.
AwaitingStartup
Waiting for a startup message from the client.
AuthenticationInProgress
Authentication handshake in progress.
ReadyForQuery
Connection is idle and ready for queries.
QueryInProgress
A query is currently being executed.
CopyInProgress(bool)
A COPY operation is in progress.
AwaitingSync
Waiting for a Sync message from the client.
Trait Implementations§
Source§impl Clone for PgWireConnectionState
impl Clone for PgWireConnectionState
Source§fn clone(&self) -> PgWireConnectionState
fn clone(&self) -> PgWireConnectionState
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 PgWireConnectionState
impl Debug for PgWireConnectionState
Source§impl Default for PgWireConnectionState
impl Default for PgWireConnectionState
Source§fn default() -> PgWireConnectionState
fn default() -> PgWireConnectionState
Returns the “default value” for a type. Read more
impl Copy for PgWireConnectionState
Auto Trait Implementations§
impl Freeze for PgWireConnectionState
impl RefUnwindSafe for PgWireConnectionState
impl Send for PgWireConnectionState
impl Sync for PgWireConnectionState
impl Unpin for PgWireConnectionState
impl UnsafeUnpin for PgWireConnectionState
impl UnwindSafe for PgWireConnectionState
Blanket Implementations§
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