mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
src/inner.rs -> src/mux/inner.rs
This commit is contained in:
parent
cf6c8b8b89
commit
d0ef03e029
6 changed files with 10 additions and 10 deletions
|
@ -11,7 +11,6 @@ mod fastwebsockets;
|
|||
#[cfg(feature = "generic_stream")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "generic_stream")))]
|
||||
pub mod generic;
|
||||
mod inner;
|
||||
mod mux;
|
||||
mod packet;
|
||||
mod stream;
|
||||
|
|
|
@ -11,7 +11,6 @@ use futures::channel::oneshot;
|
|||
|
||||
use crate::{
|
||||
extensions::{udp::UdpProtocolExtension, AnyProtocolExtension},
|
||||
inner::{MuxInner, WsEvent},
|
||||
mux::send_info_packet,
|
||||
ws::{AppendingWebSocketRead, LockedWebSocketWrite, Payload, WebSocketRead, WebSocketWrite},
|
||||
CloseReason, MuxProtocolExtensionStream, MuxStream, Packet, PacketType, Role, StreamType,
|
||||
|
@ -19,8 +18,10 @@ use crate::{
|
|||
};
|
||||
|
||||
use super::{
|
||||
get_supported_extensions, validate_continue_packet, Multiplexor, MuxResult,
|
||||
WispHandshakeResult, WispHandshakeResultKind, WispV2Handshake,
|
||||
get_supported_extensions,
|
||||
inner::{MuxInner, WsEvent},
|
||||
validate_continue_packet, Multiplexor, MuxResult, WispHandshakeResult, WispHandshakeResultKind,
|
||||
WispV2Handshake,
|
||||
};
|
||||
|
||||
async fn handshake<R: WebSocketRead>(
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
mod client;
|
||||
pub(crate) mod inner;
|
||||
mod server;
|
||||
use std::{future::Future, pin::Pin};
|
||||
|
||||
|
|
|
@ -11,15 +11,16 @@ use futures::channel::oneshot;
|
|||
|
||||
use crate::{
|
||||
extensions::AnyProtocolExtension,
|
||||
inner::{MuxInner, WsEvent},
|
||||
ws::{AppendingWebSocketRead, LockedWebSocketWrite, Payload, WebSocketRead, WebSocketWrite},
|
||||
CloseReason, ConnectPacket, MuxProtocolExtensionStream, MuxStream, Packet, PacketType, Role,
|
||||
WispError,
|
||||
};
|
||||
|
||||
use super::{
|
||||
get_supported_extensions, send_info_packet, Multiplexor, MuxResult, WispHandshakeResult,
|
||||
WispHandshakeResultKind, WispV2Handshake,
|
||||
get_supported_extensions,
|
||||
inner::{MuxInner, WsEvent},
|
||||
send_info_packet, Multiplexor, MuxResult, WispHandshakeResult, WispHandshakeResultKind,
|
||||
WispV2Handshake,
|
||||
};
|
||||
|
||||
async fn handshake<R: WebSocketRead>(
|
||||
|
|
|
@ -3,9 +3,7 @@ mod sink_unfold;
|
|||
pub use compat::*;
|
||||
|
||||
use crate::{
|
||||
inner::WsEvent,
|
||||
ws::{Frame, LockedWebSocketWrite, Payload},
|
||||
AtomicCloseReason, CloseReason, Packet, Role, StreamType, WispError,
|
||||
inner::WsEvent, ws::{Frame, LockedWebSocketWrite, Payload}, AtomicCloseReason, CloseReason, Packet, Role, StreamType, WispError
|
||||
};
|
||||
|
||||
use bytes::{BufMut, Bytes, BytesMut};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue