pub struct TlsConnectionBuilder<'a> { /* private fields */ }Expand description
Builder for TLS connections using rustls
Implementations§
Source§impl<'a> TlsConnectionBuilder<'a>
impl<'a> TlsConnectionBuilder<'a>
Sourcepub fn identity(self, identity: Option<&'a DeboaIdentity>) -> Self
pub fn identity(self, identity: Option<&'a DeboaIdentity>) -> Self
Set the identity to use for the connection
Sourcepub fn certificate(self, certificate: Option<&'a DeboaCertificate>) -> Self
pub fn certificate(self, certificate: Option<&'a DeboaCertificate>) -> Self
Set the certificate to use for the connection
Sourcepub fn skip_server_verification(self, skip_server_verification: bool) -> Self
pub fn skip_server_verification(self, skip_server_verification: bool) -> Self
Skip server verification
Sourcepub fn build_config(self) -> Result<ClientConfig>
pub fn build_config(self) -> Result<ClientConfig>
Build the TLS client configuration
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TlsConnectionBuilder<'a>
impl<'a> !UnwindSafe for TlsConnectionBuilder<'a>
impl<'a> Freeze for TlsConnectionBuilder<'a>
impl<'a> Send for TlsConnectionBuilder<'a>
impl<'a> Sync for TlsConnectionBuilder<'a>
impl<'a> Unpin for TlsConnectionBuilder<'a>
impl<'a> UnsafeUnpin for TlsConnectionBuilder<'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
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