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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes