mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_ws network: make HandshakeMachine non-public
This commit is contained in:
parent
885640a385
commit
73c90622c7
1 changed files with 3 additions and 3 deletions
|
|
@ -101,7 +101,7 @@ impl Write for Stream {
|
|||
}
|
||||
|
||||
|
||||
pub enum HandshakeMachine {
|
||||
enum HandshakeMachine {
|
||||
TcpStream(TcpStream),
|
||||
TlsStream(TlsStream<TcpStream>),
|
||||
TlsMidHandshake(MidHandshakeTlsStream<TcpStream>),
|
||||
|
|
@ -111,12 +111,12 @@ pub enum HandshakeMachine {
|
|||
|
||||
impl HandshakeMachine {
|
||||
#[inline]
|
||||
pub fn new(tcp_stream: TcpStream) -> Self {
|
||||
fn new(tcp_stream: TcpStream) -> Self {
|
||||
Self::TcpStream(tcp_stream)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn advance(
|
||||
fn advance(
|
||||
self,
|
||||
opt_tls_acceptor: &Option<TlsAcceptor>, // If set, run TLS
|
||||
) -> (Option<Either<EstablishedWs, Self>>, bool) { // bool = stop looping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue