#[non_exhaustive]pub enum ClientAuth {
None,
Optional(Vec<PathBuf>),
Required(Vec<PathBuf>),
}Expand description
Whether connecting clients are asked for a certificate, and against what.
Asking for a certificate and validating one that arrives still admits a
client that presents none; only Required turns a
missing certificate into a failed handshake.
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.
None
Don’t ask for a client certificate.
Optional(Vec<PathBuf>)
Ask, and verify against these roots if one is presented. A client that presents none is still accepted.
Required(Vec<PathBuf>)
Require every client to present a certificate chaining to these roots.
Trait Implementations§
Source§impl Clone for ClientAuth
impl Clone for ClientAuth
Source§impl Debug for ClientAuth
impl Debug for ClientAuth
Auto Trait Implementations§
impl Freeze for ClientAuth
impl RefUnwindSafe for ClientAuth
impl Send for ClientAuth
impl Sync for ClientAuth
impl Unpin for ClientAuth
impl UnsafeUnpin for ClientAuth
impl UnwindSafe for ClientAuth
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