pub enum ClientAuthMode {
Disabled,
Optional,
Required,
}Expand description
Whether the server requests and verifies a client certificate during the TLS handshake (RFC 5246 §7.4.6 — Kafka’s mTLS path).
Required rejects connections that don’t present a cert chaining to
client_ca_path. Optional requests a cert but still accepts
anonymous handshakes — the dispatch layer is responsible for
surfacing the Anonymous outcome to gating logic. Disabled requests
no client cert.
Variants§
Disabled
No client certificate requested. The handshake completes
without CertificateRequest.
Optional
Client certificate is requested but the handshake also accepts peers that don’t present one. The dispatch layer keeps such connections as ANONYMOUS.
Required
Client certificate is required. Handshake fails if the peer
doesn’t present a cert chaining to client_ca_path.
Trait Implementations§
Source§impl Clone for ClientAuthMode
impl Clone for ClientAuthMode
Source§fn clone(&self) -> ClientAuthMode
fn clone(&self) -> ClientAuthMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientAuthMode
Source§impl Debug for ClientAuthMode
impl Debug for ClientAuthMode
Source§impl Default for ClientAuthMode
impl Default for ClientAuthMode
Source§fn default() -> ClientAuthMode
fn default() -> ClientAuthMode
Returns the “default value” for a type. Read more
impl Eq for ClientAuthMode
Source§impl PartialEq for ClientAuthMode
impl PartialEq for ClientAuthMode
Source§fn eq(&self, other: &ClientAuthMode) -> bool
fn eq(&self, other: &ClientAuthMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientAuthMode
Auto Trait Implementations§
impl Freeze for ClientAuthMode
impl RefUnwindSafe for ClientAuthMode
impl Send for ClientAuthMode
impl Sync for ClientAuthMode
impl Unpin for ClientAuthMode
impl UnsafeUnpin for ClientAuthMode
impl UnwindSafe for ClientAuthMode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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