mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
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:
parent
ef5b6af7f6
commit
7497561fed
@ -1194,7 +1194,12 @@ impl TcpStream {
|
|||||||
))]
|
))]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
docsrs,
|
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> {
|
pub fn quickack(&self) -> io::Result<bool> {
|
||||||
socket2::SockRef::from(self).tcp_quickack()
|
socket2::SockRef::from(self).tcp_quickack()
|
||||||
@ -1229,7 +1234,12 @@ impl TcpStream {
|
|||||||
))]
|
))]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
docsrs,
|
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<()> {
|
pub fn set_quickack(&self, quickack: bool) -> io::Result<()> {
|
||||||
socket2::SockRef::from(self).set_tcp_quickack(quickack)
|
socket2::SockRef::from(self).set_tcp_quickack(quickack)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user