Struct rustls::DangerousClientConfig
source · [−]pub struct DangerousClientConfig<'a> {
pub cfg: &'a mut ClientConfig,
}
Expand description
Accessor for dangerous configuration options.
Fields
cfg: &'a mut ClientConfig
The underlying ClientConfig
Implementations
sourceimpl<'a> DangerousClientConfig<'a>
impl<'a> DangerousClientConfig<'a>
sourcepub fn set_certificate_verifier(&mut self, verifier: Arc<dyn ServerCertVerifier>)
pub fn set_certificate_verifier(&mut self, verifier: Arc<dyn ServerCertVerifier>)
Overrides the default ServerCertVerifier
with something else.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DangerousClientConfig<'a>
impl<'a> Send for DangerousClientConfig<'a>
impl<'a> Sync for DangerousClientConfig<'a>
impl<'a> Unpin for DangerousClientConfig<'a>
impl<'a> !UnwindSafe for DangerousClientConfig<'a>
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more