diff options
| author | mat <git@matdoes.dev> | 2025-02-01 20:35:57 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-01 20:35:57 +0000 |
| commit | 87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca (patch) | |
| tree | f725697c27f1959a97d48d5ed6e4a25266dcdd6b /azalea-client/src/raw_connection.rs | |
| parent | 4aa5010ea2dec8633be29b0a06c9b2233d7a6522 (diff) | |
| download | azalea-drasl-87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca.tar.xz | |
add failing test_set_health_before_login test
Diffstat (limited to 'azalea-client/src/raw_connection.rs')
| -rw-r--r-- | azalea-client/src/raw_connection.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/azalea-client/src/raw_connection.rs b/azalea-client/src/raw_connection.rs index 2091c14e..50f41049 100644 --- a/azalea-client/src/raw_connection.rs +++ b/azalea-client/src/raw_connection.rs @@ -18,26 +18,26 @@ use tracing::error; /// yourself. It will do the compression and encryption for you though. #[derive(Component)] pub struct RawConnection { - reader: RawConnectionReader, - writer: RawConnectionWriter, + pub reader: RawConnectionReader, + pub writer: RawConnectionWriter, /// Packets sent to this will be sent to the server. /// A task that reads packets from the server. The client is disconnected /// when this task ends. - read_packets_task: tokio::task::JoinHandle<()>, + pub read_packets_task: tokio::task::JoinHandle<()>, /// A task that writes packets from the server. - write_packets_task: tokio::task::JoinHandle<()>, + pub write_packets_task: tokio::task::JoinHandle<()>, - connection_protocol: ConnectionProtocol, + pub connection_protocol: ConnectionProtocol, } #[derive(Clone)] -struct RawConnectionReader { +pub struct RawConnectionReader { pub incoming_packet_queue: Arc<Mutex<Vec<Box<[u8]>>>>, pub run_schedule_sender: mpsc::UnboundedSender<()>, } #[derive(Clone)] -struct RawConnectionWriter { +pub struct RawConnectionWriter { pub outgoing_packets_sender: mpsc::UnboundedSender<Box<[u8]>>, } |
