pub struct PassthroughTls;Expand description
Supply this to connect_raw in place of NoTls to specify TLS
when using Workers.
let config = tokio_postgres::config::Config::new();
let socket = Socket::builder()
.secure_transport(SecureTransport::StartTls)
.connect("database_url", 5432)?;
let _ = config.connect_raw(socket, PassthroughTls).await?;Trait Implementations§
Source§impl Clone for PassthroughTls
impl Clone for PassthroughTls
Source§fn clone(&self) -> PassthroughTls
fn clone(&self) -> PassthroughTls
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PassthroughTls
impl Debug for PassthroughTls
Source§impl Default for PassthroughTls
impl Default for PassthroughTls
Source§fn default() -> PassthroughTls
fn default() -> PassthroughTls
Returns the “default value” for a type. Read more
Source§impl TlsConnect<Socket> for PassthroughTls
impl TlsConnect<Socket> for PassthroughTls
Auto Trait Implementations§
impl Freeze for PassthroughTls
impl RefUnwindSafe for PassthroughTls
impl Send for PassthroughTls
impl Sync for PassthroughTls
impl Unpin for PassthroughTls
impl UnsafeUnpin for PassthroughTls
impl UnwindSafe for PassthroughTls
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more