Struct pgwire::protocol::RunParams[][src]

pub struct RunParams<'a, A> {
    pub tls_mode: Option<TlsMode>,
    pub coord_client: ConnClient,
    pub conn: &'a mut FramedConn<A>,
    pub version: i32,
    pub params: HashMap<String, String>,
    pub metrics: &'a Metrics,
}
Expand description

Parameters for the run function.

Fields

tls_mode: Option<TlsMode>

The TLS mode of the pgwire server.

coord_client: ConnClient

A client for the coordinator.

conn: &'a mut FramedConn<A>

The connection to the client.

version: i32

The protocol version that the client provided in the startup message.

params: HashMap<String, String>

The parameters that the client provided in the startup message.

metrics: &'a Metrics

The server’s metrics.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more