pub struct ServerConn {
pub framed: Framed<TcpStream, BackendCodec>,
pub params: Vec<(String, String)>,
pub backend_key: (i32, i32),
pub created_at: Instant,
pub statements: PreparedStatements,
pub dirty_vars: HashSet<String>,
pub last_tx_status: TransactionStatus,
}Expand description
A server connection that has completed the PostgreSQL startup sequence and is ready for query forwarding.
Fields§
§framed: Framed<TcpStream, BackendCodec>§params: Vec<(String, String)>§backend_key: (i32, i32)§created_at: Instant§statements: PreparedStatementsPer-connection prepared-statement state: which canonical statements
are prepared on this backend, plus the bookkeeping to filter the
backend’s ParseComplete/CloseComplete replies that answer
messages halephant injected on the client’s behalf.
dirty_vars: HashSet<String>GUC variables SET by the client during this session. Only these are RESET during connection reset, preserving startup parameters.
last_tx_status: TransactionStatusLast ReadyForQuery status seen on this connection. Updated by
the proxy forwarding loop so reset_connection knows whether a
ROLLBACK is needed. Starts as Idle (freshly connected).
Auto Trait Implementations§
impl !Freeze for ServerConn
impl Forget for ServerConn
impl Move for ServerConn
impl RefUnwindSafe for ServerConn
impl Send for ServerConn
impl Sync for ServerConn
impl Unpin for ServerConn
impl UnsafeUnpin for ServerConn
impl UnwindSafe for ServerConn
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