Reduce visibility of some `transport::connection` items. (#20)

Signed-off-by: Brian Smith <brian@briansmith.org>
This commit is contained in:
Brian Smith 2018-07-20 10:20:50 -10:00 committed by GitHub
parent 6a81e1f137
commit 38058eb7d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -242,7 +242,7 @@ where
&self.ctx.proxy,
&self.ctx.remote,
self.ctx.metadata.clone(),
io.tls_status,
io.tls_status(),
);
let ctx = Arc::new(ctx.into());
let trans = Transport::open(io, Instant::now(), &self.handle, ctx);

View File

@ -23,8 +23,7 @@ pub struct BoundPort {
}
/// Initiates a client connection to the given address.
pub fn connect(addr: &SocketAddr,
tls: tls::ConditionalConnectionConfig<tls::ClientConfig>)
pub(super) fn connect(addr: &SocketAddr, tls: tls::ConditionalConnectionConfig<tls::ClientConfig>)
-> Connecting
{
let state = ConnectingState::Plaintext {
@ -81,7 +80,7 @@ pub struct Connection {
peek_buf: BytesMut,
/// Whether or not the connection is secured with TLS.
pub tls_status: TlsStatus,
tls_status: TlsStatus,
}
/// A trait describing that a type can peek bytes.