Struct rustls::client::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 DangerousClientConfig<'_>
impl DangerousClientConfig<'_>
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