mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +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`
|
/// A wrapper around a `native_tls::TlsConnector`, providing an async `connect`
|
||||||
/// method.
|
/// method.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct TlsConnector {
|
pub struct TlsConnector {
|
||||||
inner: native_tls::TlsConnector,
|
inner: native_tls::TlsConnector,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A wrapper around a `native_tls::TlsAcceptor`, providing an async `accept`
|
/// A wrapper around a `native_tls::TlsAcceptor`, providing an async `accept`
|
||||||
/// method.
|
/// method.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct TlsAcceptor {
|
pub struct TlsAcceptor {
|
||||||
inner: native_tls::TlsAcceptor,
|
inner: native_tls::TlsAcceptor,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user