#[non_exhaustive]pub enum ServerAuth {
Trust(Trust),
Verifier(Arc<dyn ServerCertVerifier>),
}Expand description
How a client verifies the server.
The value ClientBuilder::new takes: a Trust converts into it, so no default hides the
choice.
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.
Trust(Trust)
Verify the server by this trust: pinned, by Roots for the name dialled
(dial_named), pinned or roots, or any certificate with key proof.
Verifier(Arc<dyn ServerCertVerifier>)
Verify the server with a verifier of the host’s own.
Trait Implementations§
Source§impl Clone for ServerAuth
impl Clone for ServerAuth
Source§impl Debug for ServerAuth
impl Debug for ServerAuth
Auto Trait Implementations§
impl !RefUnwindSafe for ServerAuth
impl !UnwindSafe for ServerAuth
impl Freeze for ServerAuth
impl Send for ServerAuth
impl Sync for ServerAuth
impl Unpin for ServerAuth
impl UnsafeUnpin for ServerAuth
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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