mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +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),
|
TcpStream(TcpStream),
|
||||||
TlsStream(TlsStream<TcpStream>),
|
TlsStream(TlsStream<TcpStream>),
|
||||||
TlsMidHandshake(MidHandshakeTlsStream<TcpStream>),
|
TlsMidHandshake(MidHandshakeTlsStream<TcpStream>),
|
||||||
|
|
@ -111,12 +111,12 @@ pub enum HandshakeMachine {
|
||||||
|
|
||||||
impl HandshakeMachine {
|
impl HandshakeMachine {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new(tcp_stream: TcpStream) -> Self {
|
fn new(tcp_stream: TcpStream) -> Self {
|
||||||
Self::TcpStream(tcp_stream)
|
Self::TcpStream(tcp_stream)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn advance(
|
fn advance(
|
||||||
self,
|
self,
|
||||||
opt_tls_acceptor: &Option<TlsAcceptor>, // If set, run TLS
|
opt_tls_acceptor: &Option<TlsAcceptor>, // If set, run TLS
|
||||||
) -> (Option<Either<EstablishedWs, Self>>, bool) { // bool = stop looping
|
) -> (Option<Either<EstablishedWs, Self>>, bool) { // bool = stop looping
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue