pub struct TlsConnectorBuilder { /* private fields */ }Implementations§
Source§impl TlsConnectorBuilder
impl TlsConnectorBuilder
pub fn with_hostname_verification_disabled(self) -> Result<TlsConnectorBuilder>
pub fn with_certificate_verification_disabled( self, ) -> Result<TlsConnectorBuilder>
pub fn with_certifiate_and_key_from_pem_files<P: AsRef<Path>>( self, cert_file: P, key_file: P, ) -> Result<TlsConnectorBuilder>
pub fn with_ca_from_pem_file<P: AsRef<Path>>( self, ca_file: P, ) -> Result<TlsConnectorBuilder>
pub fn add_root_certificate( self, cert: Certificate, ) -> Result<TlsConnectorBuilder>
Sourcepub fn with_identity(self, builder: IdentityBuilder) -> Result<Self>
pub fn with_identity(self, builder: IdentityBuilder) -> Result<Self>
set identity
pub fn build(self) -> TlsConnector
Auto Trait Implementations§
impl Freeze for TlsConnectorBuilder
impl RefUnwindSafe for TlsConnectorBuilder
impl Send for TlsConnectorBuilder
impl Sync for TlsConnectorBuilder
impl Unpin for TlsConnectorBuilder
impl UnwindSafe for TlsConnectorBuilder
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