mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-07 00:00:09 +02:00
tls: make TlsConnector and TlsAcceptor derive Clone (#777)
This commit is contained in:
committed by
Toby Lawrence
parent
527dc0a66f
commit
e7d9ba7e51
@@ -43,12 +43,14 @@ pub struct TlsStream<S> {
|
||||
|
||||
/// A wrapper around a `native_tls::TlsConnector`, providing an async `connect`
|
||||
/// method.
|
||||
#[derive(Clone)]
|
||||
pub struct TlsConnector {
|
||||
inner: native_tls::TlsConnector,
|
||||
}
|
||||
|
||||
/// A wrapper around a `native_tls::TlsAcceptor`, providing an async `accept`
|
||||
/// method.
|
||||
#[derive(Clone)]
|
||||
pub struct TlsAcceptor {
|
||||
inner: native_tls::TlsAcceptor,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user