pub struct TlsClient {
pub cfg: Arc<ClientConfig>,
}
Fields§
§cfg: Arc<ClientConfig>
Implementations§
Trait Implementations§
Source§impl SslClient for TlsClient
impl SslClient for TlsClient
Source§type Stream = WrappedStream
type Stream = WrappedStream
The protected stream.
Source§fn wrap_client(&self, stream: HttpStream, host: &str) -> Result<WrappedStream>
fn wrap_client(&self, stream: HttpStream, host: &str) -> Result<WrappedStream>
Wrap a client stream with SSL.
Auto Trait Implementations§
impl Freeze for TlsClient
impl !RefUnwindSafe for TlsClient
impl Send for TlsClient
impl Sync for TlsClient
impl Unpin for TlsClient
impl !UnwindSafe for TlsClient
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