rachel-rose преди 5 години
родител
ревизия
b2a100234f
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      src/net/sessions/session.rs

+ 2 - 0
src/net/sessions/session.rs

@@ -25,6 +25,8 @@ async fn remove_sub_on_stop(p2p: P2pPtr, channel: ChannelPtr) {
 }
 }
 
 
 #[async_trait]
 #[async_trait]
+/// Session trait. Defines methods that are used across sessions. Implements registering the channel
+/// and initializing the channel by performing a network handshake.
 pub trait Session: Sync {
 pub trait Session: Sync {
     /// Registers a new channel with the session. Performs a network handshake and starts the channel.
     /// Registers a new channel with the session. Performs a network handshake and starts the channel.
     async fn register_channel(
     async fn register_channel(