mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-13 12:54:40 +00:00
net: add missing doc cfg on TcpSocket (#3137)
This adds the missing `net` feature flag in the generated API documentation.
This commit is contained in:
parent
02b1117dca
commit
850bfc9efa
@ -9,6 +9,7 @@ use std::os::unix::io::{AsRawFd, FromRawFd, RawFd};
|
||||
#[cfg(windows)]
|
||||
use std::os::windows::io::{AsRawSocket, FromRawSocket, IntoRawSocket, RawSocket};
|
||||
|
||||
cfg_net! {
|
||||
/// A TCP socket that has not yet been converted to a `TcpStream` or
|
||||
/// `TcpListener`.
|
||||
///
|
||||
@ -83,6 +84,7 @@ use std::os::windows::io::{AsRawSocket, FromRawSocket, IntoRawSocket, RawSocket}
|
||||
pub struct TcpSocket {
|
||||
inner: mio::net::TcpSocket,
|
||||
}
|
||||
}
|
||||
|
||||
impl TcpSocket {
|
||||
/// Create a new socket configured for IPv4.
|
||||
|
Loading…
x
Reference in New Issue
Block a user