Reduce visibility of some `transport::connection` items. (#20)
Signed-off-by: Brian Smith <brian@briansmith.org>
This commit is contained in:
parent
6a81e1f137
commit
38058eb7d8
|
@ -242,7 +242,7 @@ where
|
||||||
&self.ctx.proxy,
|
&self.ctx.proxy,
|
||||||
&self.ctx.remote,
|
&self.ctx.remote,
|
||||||
self.ctx.metadata.clone(),
|
self.ctx.metadata.clone(),
|
||||||
io.tls_status,
|
io.tls_status(),
|
||||||
);
|
);
|
||||||
let ctx = Arc::new(ctx.into());
|
let ctx = Arc::new(ctx.into());
|
||||||
let trans = Transport::open(io, Instant::now(), &self.handle, ctx);
|
let trans = Transport::open(io, Instant::now(), &self.handle, ctx);
|
||||||
|
|
|
@ -23,8 +23,7 @@ pub struct BoundPort {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Initiates a client connection to the given address.
|
/// Initiates a client connection to the given address.
|
||||||
pub fn connect(addr: &SocketAddr,
|
pub(super) fn connect(addr: &SocketAddr, tls: tls::ConditionalConnectionConfig<tls::ClientConfig>)
|
||||||
tls: tls::ConditionalConnectionConfig<tls::ClientConfig>)
|
|
||||||
-> Connecting
|
-> Connecting
|
||||||
{
|
{
|
||||||
let state = ConnectingState::Plaintext {
|
let state = ConnectingState::Plaintext {
|
||||||
|
@ -81,7 +80,7 @@ pub struct Connection {
|
||||||
peek_buf: BytesMut,
|
peek_buf: BytesMut,
|
||||||
|
|
||||||
/// Whether or not the connection is secured with TLS.
|
/// 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.
|
/// A trait describing that a type can peek bytes.
|
||||||
|
|
Loading…
Reference in New Issue