We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23602b4 commit 74b079cCopy full SHA for 74b079c
tonic/src/transport/server/conn.rs
@@ -68,8 +68,10 @@ pub trait Connected {
68
/// [ext]: crate::Request::extensions
69
#[derive(Debug, Clone)]
70
pub struct TcpConnectInfo {
71
- local_addr: Option<SocketAddr>,
72
- remote_addr: Option<SocketAddr>,
+ /// Returns the local address of this connection.
+ pub local_addr: Option<SocketAddr>,
73
+ /// Returns the remote (peer) address of this connection.
74
+ pub remote_addr: Option<SocketAddr>,
75
}
76
77
impl TcpConnectInfo {
0 commit comments