Where can I see the file descriptor associated with a TcpStream?

⚓ rust    📅 2025-05-30    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 49 days ago. The information described in this article may have changed.

I'm new to Rust and was testing TcpStream. I noticed that Rust uses file descriptor in Linux.

The print below shows that the file descriptor number is 4.


But when I go to check the symbolic links in the process's fd folder, 4 doesn't appear .

How does this work in Rust ?

1 post - 1 participant

Read full topic

🏷️ rust_feed