src/inner.rs -> src/mux/inner.rs

This commit is contained in:
Toshit Chawda 2024-10-29 19:59:40 -07:00
parent cf6c8b8b89
commit d0ef03e029
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D
6 changed files with 10 additions and 10 deletions

View file

@ -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;

View file

@ -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>(

View file

@ -1,4 +1,5 @@
mod client;
pub(crate) mod inner;
mod server;
use std::{future::Future, pin::Pin};

View file

@ -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>(

View file

@ -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};