]> git.lizzy.rs Git - connect-rs.git/blobdiff - src/reader.rs
improve documentation and logging
[connect-rs.git] / src / reader.rs
index 3954c4eee7ac3a22a03f34b82386e00da68e87cb..1e9c03155e6ef63e6268fd35ddc6f2aed0086048 100644 (file)
@@ -14,7 +14,7 @@ const BUFFER_SIZE: usize = 8192;
 
 /// An interface to read messages from the network connection.
 ///
-/// Implements the [`Stream`] trait to asynchronously read messages from the network connection.
+/// Implements the `Stream` trait to asynchronously read messages from the network connection.
 ///
 /// # Example
 ///
@@ -72,13 +72,13 @@ impl ConnectionReader {
         self.peer_addr.clone()
     }
 
-    /// Check if the [`Stream`] of messages from the network is closed.
+    /// Check if the `Stream` of messages from the network is closed.
     pub fn is_closed(&self) -> bool {
         self.closed
     }
 
     pub(crate) fn close_stream(&mut self) {
-        trace!("closing the stream for connection with {}", self.peer_addr);
+        debug!("Closing the stream for connection with {}", self.peer_addr);
         self.buffer.take();
         self.pending_datagram.take();
         self.pending_read.take();