#[non_exhaustive]pub enum SslNegotiation {
Postgres,
Direct,
}
Expand description
TLS negotiation configuration
See more information at https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNECT-SSLNEGOTIATION
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Postgres
Use PostgreSQL SslRequest for Ssl negotiation
Direct
Start Ssl handshake without negotiation, only works for PostgreSQL 17+
Trait Implementations§
Source§impl Clone for SslNegotiation
impl Clone for SslNegotiation
Source§fn clone(&self) -> SslNegotiation
fn clone(&self) -> SslNegotiation
Returns a copy 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 SslNegotiation
impl Debug for SslNegotiation
Source§impl Default for SslNegotiation
impl Default for SslNegotiation
Source§fn default() -> SslNegotiation
fn default() -> SslNegotiation
Returns the “default value” for a type. Read more
Source§impl PartialEq for SslNegotiation
impl PartialEq for SslNegotiation
impl Copy for SslNegotiation
impl Eq for SslNegotiation
impl StructuralPartialEq for SslNegotiation
Auto Trait Implementations§
impl Freeze for SslNegotiation
impl RefUnwindSafe for SslNegotiation
impl Send for SslNegotiation
impl Sync for SslNegotiation
impl Unpin for SslNegotiation
impl UnwindSafe for SslNegotiation
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