pub enum SslMode {
Disable,
Prefer,
Require,
}Expand description
SSL mode for Postgres connections.
Variants§
Disable
No SSL (default — matches current NoTls behavior).
Prefer
Prefer SSL but allow fallback.
Require
Require SSL.
Trait Implementations§
impl Copy 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