#[non_exhaustive]pub enum SslClientAuth {
Required,
Requested,
None,
}Expand description
Describes whether the server should require or request client authentication.
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>
Returns the constant whose name matches key ignoring case, or
SslClientAuth::None when key is None.
§Arguments
key- the config value to look up
§Returns
The matching constant, or None when key is set but matches no constant.
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 Hash for SslClientAuth
impl Hash for SslClientAuth
Source§impl Ord for SslClientAuth
impl Ord for SslClientAuth
Source§fn cmp(&self, other: &SslClientAuth) -> Ordering
fn cmp(&self, other: &SslClientAuth) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SslClientAuth
impl PartialEq for SslClientAuth
Source§impl PartialOrd for SslClientAuth
impl PartialOrd 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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