ClientInfo

Trait ClientInfo 

Source
pub trait ClientInfo {
Show 14 methods // Required methods fn socket_addr(&self) -> SocketAddr; fn is_secure(&self) -> bool; fn protocol_version(&self) -> ProtocolVersion; fn set_protocol_version(&mut self, version: ProtocolVersion); fn pid_and_secret_key(&self) -> (i32, SecretKey); fn set_pid_and_secret_key(&mut self, pid: i32, secret_key: SecretKey); fn state(&self) -> PgWireConnectionState; fn set_state(&mut self, new_state: PgWireConnectionState); fn transaction_status(&self) -> TransactionStatus; fn set_transaction_status(&mut self, new_status: TransactionStatus); fn metadata(&self) -> &HashMap<String, String>; fn metadata_mut(&mut self) -> &mut HashMap<String, String>; fn sni_server_name(&self) -> Option<&str>; fn client_certificates<'a>(&self) -> Option<&[CertificateDer<'a>]>;
}
Expand description

Describe a client information holder

Required Methods§

Implementations on Foreign Types§

Source§

impl<T: 'static, S> ClientInfo for Framed<T, PgWireMessageServerCodec<S>>

Implementors§