pub struct ServerConn {
pub framed: Framed<TcpStream, BackendCodec>,
pub params: Vec<(String, String)>,
pub backend_key: (i32, i32),
pub created_at: Instant,
pub prepared: ServerPrepared,
pub dirty_vars: HashSet<String>,
}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§prepared: ServerPreparedTracks which prepared statements are cached on this server connection.
dirty_vars: HashSet<String>GUC variables SET by the client during this session. Only these are RESET during connection reset, preserving startup parameters.
Auto Trait Implementations§
impl !Freeze 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