pub enum SslMode {
Disable,
Require,
VerifyCa,
VerifyFull,
}Expand description
SSL/TLS connection mode matching PostgreSQL sslmode parameter.
Controls whether and how TLS is negotiated with the server.
Variants§
Disable
No TLS (plaintext connection)
Require
TLS required, but server certificate is not verified
VerifyCa
TLS required, server certificate must be signed by a trusted CA
VerifyFull
TLS required, server certificate must be signed by a trusted CA and hostname must match
Implementations§
Trait Implementations§
impl Copy for SslMode
impl Eq for SslMode
impl StructuralPartialEq for SslMode
Auto Trait Implementations§
impl Freeze for SslMode
impl RefUnwindSafe for SslMode
impl Send for SslMode
impl Sync for SslMode
impl Unpin for SslMode
impl UnsafeUnpin for SslMode
impl UnwindSafe for SslMode
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