[bug fix] add logic

This commit is contained in:
YinMo19
2025-04-24 21:25:00 +08:00
parent 7110634c09
commit 608eb5983f
2 changed files with 4 additions and 49 deletions

View File

@@ -25,7 +25,7 @@ pub trait TcpStreamTrait: AsyncRead + AsyncWrite + Unpin {}
pub struct DynTcpStream(pub(crate) Box<dyn TcpStreamTrait + Send + Sync>);
#[derive(Clone)]
pub struct Encrypt(Key, u64, u64);
pub struct Encrypt(pub Key, pub u64, pub u64);
pub struct FramedStream(
pub(crate) Framed<DynTcpStream, BytesCodec>,