Function mz_pgwire::protocol::run

source ·
pub async fn run<'a, A>(__arg0: RunParams<'a, A>) -> Result<(), Error>where
    A: AsyncRead + AsyncWrite + AsyncReady + Send + Sync + Unpin,
Expand description

Runs a pgwire connection to completion.

This involves responding to FrontendMessage::StartupMessage and all future requests until the client terminates the connection or a fatal error occurs.

Note that this function returns successfully even upon delivering a fatal error to the client. It only returns Err if an unexpected I/O error occurs while communicating with the client, e.g., if the connection is severed in the middle of a request.