pub enum GssEncMode {
Disable,
Prefer,
Require,
}Expand description
GSSAPI encryption mode for transport-level encryption via Kerberos.
Controls whether the driver attempts GSSAPI session encryption (GSSENCRequest) before falling back to TLS or plaintext.
See: PostgreSQL protocol §54.2.11 — GSSAPI Session Encryption.
Variants§
Disable
Never attempt GSSAPI encryption.
Prefer
Try GSSAPI encryption first; fall back to TLS or plaintext.
Require
Require GSSAPI encryption — fail if the server rejects GSSENCRequest.
Implementations§
Source§impl GssEncMode
impl GssEncMode
Sourcepub fn parse_gssencmode(value: &str) -> Option<Self>
pub fn parse_gssencmode(value: &str) -> Option<Self>
Parse libpq-style gssencmode values.
Trait Implementations§
Source§impl Clone for GssEncMode
impl Clone for GssEncMode
Source§fn clone(&self) -> GssEncMode
fn clone(&self) -> GssEncMode
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 GssEncMode
impl Debug for GssEncMode
Source§impl Default for GssEncMode
impl Default for GssEncMode
Source§fn default() -> GssEncMode
fn default() -> GssEncMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for GssEncMode
impl PartialEq for GssEncMode
impl Copy for GssEncMode
impl Eq for GssEncMode
impl StructuralPartialEq for GssEncMode
Auto Trait Implementations§
impl Freeze for GssEncMode
impl RefUnwindSafe for GssEncMode
impl Send for GssEncMode
impl Sync for GssEncMode
impl Unpin for GssEncMode
impl UnsafeUnpin for GssEncMode
impl UnwindSafe for GssEncMode
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