Struct rustls::client::client_conn::danger::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§
source§impl<'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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DangerousClientConfig<'a>
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§
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