mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-23 00:00:10 +02:00
net: render the cygwin in the docs of quickack and set_quickack (#7515)
Signed-off-by: ADD-SP <[email protected]>
This commit is contained in:
@@ -1194,7 +1194,12 @@ impl TcpStream {
|
||||
))]
|
||||
#[cfg_attr(
|
||||
docsrs,
|
||||
doc(cfg(any(target_os = "linux", target_os = "android", target_os = "fuchsia")))
|
||||
doc(cfg(any(
|
||||
target_os = "linux",
|
||||
target_os = "android",
|
||||
target_os = "fuchsia",
|
||||
target_os = "cygwin"
|
||||
)))
|
||||
)]
|
||||
pub fn quickack(&self) -> io::Result<bool> {
|
||||
socket2::SockRef::from(self).tcp_quickack()
|
||||
@@ -1229,7 +1234,12 @@ impl TcpStream {
|
||||
))]
|
||||
#[cfg_attr(
|
||||
docsrs,
|
||||
doc(cfg(any(target_os = "linux", target_os = "android", target_os = "fuchsia")))
|
||||
doc(cfg(any(
|
||||
target_os = "linux",
|
||||
target_os = "android",
|
||||
target_os = "fuchsia",
|
||||
target_os = "cygwin"
|
||||
)))
|
||||
)]
|
||||
pub fn set_quickack(&self, quickack: bool) -> io::Result<()> {
|
||||
socket2::SockRef::from(self).set_tcp_quickack(quickack)
|
||||
|
||||
Reference in New Issue
Block a user