pub struct HttpsBuilder { /* private fields */ }
Available on crate features
client
and tls
only.Expand description
Builder for HTTPS connectors
Implementations§
Source§impl HttpsBuilder
impl HttpsBuilder
Sourcepub fn pin_server_certificate<CA>(self, ca_certificate: CA) -> Self
Available on neither macOS nor Windows nor iOS.
pub fn pin_server_certificate<CA>(self, ca_certificate: CA) -> Self
Pin the CA certificate for the server’s certificate.
§Arguments
ca_certificate
- Path to CA certificate used to authenticate the server
Sourcepub fn client_authentication<K, C>(
self,
client_key: K,
client_certificate: C,
) -> Self
Available on neither macOS nor Windows nor iOS.
pub fn client_authentication<K, C>( self, client_key: K, client_certificate: C, ) -> Self
Provide the Client Certificate and Key for the connection for Mutual TLS
§Arguments
client_key
- Path to the client private keyclient_certificate
- Path to the client’s public certificate associated with the private key
Sourcepub fn build(self) -> Result<HttpsConnector<HttpConnector>, ErrorStack>
Available on neither macOS nor Windows nor iOS.
pub fn build(self) -> Result<HttpsConnector<HttpConnector>, ErrorStack>
Build the HTTPS connector. Will fail if the provided certificates/keys can’t be loaded or the SSL connector can’t be created
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpsBuilder
impl RefUnwindSafe for HttpsBuilder
impl Send for HttpsBuilder
impl Sync for HttpsBuilder
impl Unpin for HttpsBuilder
impl UnwindSafe for HttpsBuilder
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more