Lines Matching defs:net
8 //! # #[cfg(feature = "net")]
9 //! # fn read(sock: std::net::TcpStream, buf: &mut [u8]) -> std::io::Result<()> {
10 //! # use rustix::net::RecvFlags;
11 //! let nread: usize = rustix::net::recv(&sock, buf, RecvFlags::PEEK)?;
20 //! # #[cfg(feature = "net")]
21 //! # fn read(sock: std::net::TcpStream, buf: &mut [u8]) -> std::io::Result<()> {
172 #[cfg(feature = "net")]
173 #[cfg_attr(doc_cfg, doc(cfg(feature = "net")))]
174 pub mod net;
180 #[cfg(any(feature = "fs", feature = "net"))]
181 #[cfg_attr(doc_cfg, doc(cfg(any(feature = "fs", feature = "net"))))]
222 #[cfg(not(any(feature = "fs", feature = "net")))]