-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust
tcp_quickack
feature to allow other os::linux::net
features.
- Loading branch information
Showing
6 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//! Linux and Android-specific definitions for socket options. | ||
//! Android-specific networking functionality. | ||
#![unstable(feature = "tcp_quickack", issue = "96256")] | ||
pub use crate::os::net::tcp::TcpStreamExt; | ||
pub use crate::os::net::linux_ext::tcp::TcpStreamExt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
//! Linux and Android-specific definitions for socket options. | ||
//! Linux-specific networking functionality. | ||
#![unstable(feature = "tcp_quickack", issue = "96256")] | ||
pub use crate::os::net::tcp::TcpStreamExt; | ||
pub use crate::os::net::linux_ext::tcp::TcpStreamExt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//! Linux and Android-specific networking functionality. | ||
#![doc(cfg(any(target_os = "linux", target_os = "android")))] | ||
|
||
#[unstable(feature = "tcp_quickack", issue = "96256")] | ||
pub(crate) mod tcp; | ||
|
||
#[cfg(test)] | ||
mod tests; |
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
library/std/src/os/net/tests.rs → library/std/src/os/net/linux_ext/tests.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
//! Linux and Android-specific definitions for socket options. | ||
//! OS-specific networking functionality. | ||
#![unstable(feature = "tcp_quickack", issue = "96256")] | ||
#![doc(cfg(any(target_os = "linux", target_os = "android",)))] | ||
pub mod tcp; | ||
#[cfg(test)] | ||
mod tests; | ||
#[cfg(any(target_os = "linux", target_os = "android", doc))] | ||
pub(super) mod linux_ext; |