#[non_exhaustive]pub enum SslClientAuth {
Required,
Requested,
None,
}Expand description
Whether the server requires or requests client TLS authentication.
This is primarily a server-side setting, but included for config
compatibility with Java’s SslClientAuth.
Translated from org.apache.kafka.common.config.SslClientAuth.
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.
Required
Server requires client certificate.
Requested
Server requests but does not require client certificate.
None
Server does not request client certificate.
Implementations§
Source§impl SslClientAuth
impl SslClientAuth
Sourcepub fn for_config(key: Option<&str>) -> Option<Self>
pub fn for_config(key: Option<&str>) -> Option<Self>
Case-insensitive lookup by config string.
Returns SslClientAuth::None if key is None.
Returns None if key is Some but does not match any variant.
Matches Java’s SslClientAuth.forConfig(String) behavior:
nullmaps toNONE- Unknown string returns
null(here:Option::None)
Trait Implementations§
Source§impl Clone for SslClientAuth
impl Clone for SslClientAuth
Source§fn clone(&self) -> SslClientAuth
fn clone(&self) -> SslClientAuth
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 SslClientAuth
impl Debug for SslClientAuth
Source§impl Default for SslClientAuth
impl Default for SslClientAuth
Source§fn default() -> SslClientAuth
fn default() -> SslClientAuth
Returns the “default value” for a type. Read more
Source§impl Display for SslClientAuth
impl Display for SslClientAuth
Source§impl FromStr for SslClientAuth
impl FromStr for SslClientAuth
Source§impl PartialEq for SslClientAuth
impl PartialEq for SslClientAuth
impl Copy for SslClientAuth
impl Eq for SslClientAuth
impl StructuralPartialEq for SslClientAuth
Auto Trait Implementations§
impl Freeze for SslClientAuth
impl RefUnwindSafe for SslClientAuth
impl Send for SslClientAuth
impl Sync for SslClientAuth
impl Unpin for SslClientAuth
impl UnsafeUnpin for SslClientAuth
impl UnwindSafe for SslClientAuth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more