pub struct DangerousClientBuilder { /* private fields */ }Expand description
Builder for dangerous TLS configuration options.
This builder exposes potentially insecure TLS settings. Use only when you understand the security implications, such as in local development or over a secure VPN connection.
Implementations§
Source§impl DangerousClientBuilder
impl DangerousClientBuilder
Sourcepub fn with_no_certificate_verification(self) -> Result<Client, ClientError>
pub fn with_no_certificate_verification(self) -> Result<Client, ClientError>
Disable certificate verification entirely.
This makes the connection vulnerable to man-in-the-middle attacks. Only use this in secure environments, such as local development or over a VPN.
This method is memory-safe, but dangerous from a security perspective, hence
the explicit dangerous() builder requirement.
Auto Trait Implementations§
impl !RefUnwindSafe for DangerousClientBuilder
impl !UnwindSafe for DangerousClientBuilder
impl Freeze for DangerousClientBuilder
impl Send for DangerousClientBuilder
impl Sync for DangerousClientBuilder
impl Unpin for DangerousClientBuilder
impl UnsafeUnpin for DangerousClientBuilder
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