pub async fn forward(
client: &mut Framed<TcpStream, FrontendCodec>,
pools: &Arc<PoolManager>,
client_guard: &ClientGuard,
notifications: &mut Option<ClientNotifications>,
listen_mode: ListenMode,
database: &str,
user: &str,
read_only: bool,
query_text: QueryText,
) -> Result<()>Expand description
Outer loop: alternate between idle (no server connection) and active (forwarding a transaction).