Skip to content

Commit

Permalink
Add document for session
Browse files Browse the repository at this point in the history
  • Loading branch information
KunoSayo authored and zonyitoo committed May 19, 2023
1 parent 4e875de commit d81aa7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ impl KcpStream {
future::poll_fn(|cx| self.poll_recv(cx, buf)).await
}

/// Get the `KcpSession` for this `KcpStream`
pub fn session(&self) -> &KcpSession {
&self.session
}
Expand Down

0 comments on commit d81aa7a

Please sign in to comment.