net: render the cygwin in the docs of quickack and set_quickack (#7515)

Signed-off-by: ADD-SP <qiqi.zhang@konghq.com>
This commit is contained in:
Qi 2025-08-06 09:01:27 +08:00 committed by GitHub
parent ef5b6af7f6
commit 7497561fed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)