mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
make some stuff in azalea-protocol public
This commit is contained in:
parent
1df4f9f477
commit
9e09df1837
1 changed files with 7 additions and 7 deletions
|
@ -23,18 +23,18 @@ use uuid::Uuid;
|
||||||
|
|
||||||
/// The read half of a connection.
|
/// The read half of a connection.
|
||||||
pub struct ReadConnection<R: ProtocolPacket> {
|
pub struct ReadConnection<R: ProtocolPacket> {
|
||||||
read_stream: OwnedReadHalf,
|
pub read_stream: OwnedReadHalf,
|
||||||
buffer: BytesMut,
|
pub buffer: BytesMut,
|
||||||
compression_threshold: Option<u32>,
|
pub compression_threshold: Option<u32>,
|
||||||
dec_cipher: Option<Aes128CfbDec>,
|
pub dec_cipher: Option<Aes128CfbDec>,
|
||||||
_reading: PhantomData<R>,
|
_reading: PhantomData<R>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The write half of a connection.
|
/// The write half of a connection.
|
||||||
pub struct WriteConnection<W: ProtocolPacket> {
|
pub struct WriteConnection<W: ProtocolPacket> {
|
||||||
write_stream: OwnedWriteHalf,
|
pub write_stream: OwnedWriteHalf,
|
||||||
compression_threshold: Option<u32>,
|
pub compression_threshold: Option<u32>,
|
||||||
enc_cipher: Option<Aes128CfbEnc>,
|
pub enc_cipher: Option<Aes128CfbEnc>,
|
||||||
_writing: PhantomData<W>,
|
_writing: PhantomData<W>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue