-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: reorganize crate in anticipation of #1264
Space is made to add `tcp`, `udp`, `uds`, ... modules
- Loading branch information
1 parent
d0a8e5d
commit 4fb549c
Showing
28 changed files
with
630 additions
and
613 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
pub(crate) use self::sys::*; | ||
|
||
#[cfg(unix)] | ||
mod sys { | ||
use mio::unix::UnixReady; | ||
use mio::Ready; | ||
|
||
pub(crate) fn hup() -> Ready { | ||
UnixReady::hup().into() | ||
} | ||
|
||
pub(crate) fn is_hup(ready: Ready) -> bool { | ||
UnixReady::from(ready).is_hup() | ||
} | ||
} | ||
|
||
#[cfg(windows)] | ||
mod sys { | ||
use mio::Ready; | ||
|
||
pub(crate) fn hup() -> Ready { | ||
Ready::empty() | ||
} | ||
|
||
pub(crate) fn is_hup(_: Ready) -> bool { | ||
false | ||
} | ||
} |
Oops, something went wrong.