pub struct MakeDynamicRustlsConnect { /* private fields */ }Available on crate feature
config-stream only.Expand description
MakeTlsConnect implementation backed by rustls with a dynamic TLS client config stream
provided by a rustls_config_stream::ClientConfigProvider.
Implementations§
Source§impl MakeDynamicRustlsConnect
impl MakeDynamicRustlsConnect
Sourcepub const fn new(config_provider: Arc<ClientConfigProvider>) -> Self
pub const fn new(config_provider: Arc<ClientConfigProvider>) -> Self
Creates a new MakeDynamicRustlsConnect from the provided
Arc<ClientConfigProvider>.
Trait Implementations§
Source§impl Clone for MakeDynamicRustlsConnect
impl Clone for MakeDynamicRustlsConnect
Source§fn clone(&self) -> MakeDynamicRustlsConnect
fn clone(&self) -> MakeDynamicRustlsConnect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> MakeTlsConnect<S> for MakeDynamicRustlsConnect
impl<S> MakeTlsConnect<S> for MakeDynamicRustlsConnect
Source§fn make_tls_connect(
&mut self,
hostname: &str,
) -> Result<Self::TlsConnect, Self::Error>
fn make_tls_connect( &mut self, hostname: &str, ) -> Result<Self::TlsConnect, Self::Error>
Creates a new MakeDynamicRustlsConnect from the given ClientConfigProvider.
Source§type TlsConnect = RustlsConnect
type TlsConnect = RustlsConnect
The
TlsConnect implementation created by this type.Source§type Error = InvalidDnsNameError
type Error = InvalidDnsNameError
The error type returned by the
TlsConnect implementation.Auto Trait Implementations§
impl Freeze for MakeDynamicRustlsConnect
impl !RefUnwindSafe for MakeDynamicRustlsConnect
impl Send for MakeDynamicRustlsConnect
impl Sync for MakeDynamicRustlsConnect
impl Unpin for MakeDynamicRustlsConnect
impl !UnwindSafe for MakeDynamicRustlsConnect
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