aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-11-11 19:24:45 -0600
committermat <github@matdoes.dev>2022-11-11 19:24:45 -0600
commit9e09df18376d58a976cc3dbbf53a48277c428a08 (patch)
treecaedcc81368c68e7ede4267c9b0784e50c778efa /azalea-protocol
parent1df4f9f4777ff3453914734d53f249f00897f558 (diff)
downloadazalea-drasl-9e09df18376d58a976cc3dbbf53a48277c428a08.tar.xz
make some stuff in azalea-protocol public
Diffstat (limited to 'azalea-protocol')
-rw-r--r--azalea-protocol/src/connect.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs
index a873a4a0..e903b820 100644
--- a/azalea-protocol/src/connect.rs
+++ b/azalea-protocol/src/connect.rs
@@ -23,18 +23,18 @@ use uuid::Uuid;
/// The read half of a connection.
pub struct ReadConnection<R: ProtocolPacket> {
- read_stream: OwnedReadHalf,
- buffer: BytesMut,
- compression_threshold: Option<u32>,
- dec_cipher: Option<Aes128CfbDec>,
+ pub read_stream: OwnedReadHalf,
+ pub buffer: BytesMut,
+ pub compression_threshold: Option<u32>,
+ pub dec_cipher: Option<Aes128CfbDec>,
_reading: PhantomData<R>,
}
/// The write half of a connection.
pub struct WriteConnection<W: ProtocolPacket> {
- write_stream: OwnedWriteHalf,
- compression_threshold: Option<u32>,
- enc_cipher: Option<Aes128CfbEnc>,
+ pub write_stream: OwnedWriteHalf,
+ pub compression_threshold: Option<u32>,
+ pub enc_cipher: Option<Aes128CfbEnc>,
_writing: PhantomData<W>,
}