Content-Length: 27611 | pFad | https://docs.rs/tokio-postgres-rustls/

tokio_postgres_rustls - Rust

Crate tokio_postgres_rustls

Source
Expand description

§tokio-postgres-rustls

This is an integration between the rustls TLS stack and the tokio-postgres asynchronous PostgreSQL client library.

Crate

API Documentation

§Example

let config = rustls::ClientConfig::builder()
    .with_root_certificates(rustls::RootCertStore::empty())
    .with_no_client_auth();
let tls = tokio_postgres_rustls::MakeRustlsConnect::new(config);
let connect_fut = tokio_postgres::connect("sslmode=require host=localhost user=postgres", tls);
// ...

§License

tokio-postgres-rustls is distributed under the MIT license.

Structs§

MakeRustlsConnect
A MakeTlsConnect implementation using rustls.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://docs.rs/tokio-postgres-rustls/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy