From 4a1ec068fc13393e249853403085be6958a807a4 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 11 Nov 2022 21:04:18 +0000 Subject: improved docs --- azalea-protocol/src/connect.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src/connect.rs') diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index f67d0e4a..d14d3424 100644 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -1,4 +1,4 @@ -//! Create connections that communicate with a remote server or client. +//! Connect to remote servers/clients. use crate::packets::game::{ClientboundGamePacket, ServerboundGamePacket}; use crate::packets::handshake::{ClientboundHandshakePacket, ServerboundHandshakePacket}; @@ -11,7 +11,7 @@ use crate::write::write_packet; use azalea_auth::sessionserver::SessionServerError; use azalea_crypto::{Aes128CfbDec, Aes128CfbEnc}; use bytes::BytesMut; -use log::{info, error}; +use log::{error, info}; use std::fmt::Debug; use std::marker::PhantomData; use std::net::SocketAddr; @@ -116,6 +116,7 @@ impl ReadConnection where R: ProtocolPacket + Debug, { + /// Read a packet from the stream. pub async fn read(&mut self) -> Result { read_packet::( &mut self.read_stream, -- cgit v1.2.3