2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-06 20:55:33 +00:00

iline docs

This commit is contained in:
jtnunley 2022-08-16 07:15:59 -07:00
parent c63c43341a
commit 27f26ea430
2 changed files with 13 additions and 0 deletions

View file

@ -55,4 +55,9 @@ cfg_docs! {
/// and must close the descriptor once it's no longer needed.
fn into_raw_fd(self) -> RawFd;
}
cfg_io_safety! {
#[doc(inline)]
pub use std::os::unix::io::{AsFd, BorrowedFd, OwnedFd};
}
}

View file

@ -82,4 +82,12 @@ cfg_docs! {
/// it once it's no longer needed.
fn into_raw_socket(self) -> RawSocket;
}
cfg_io_safety! {
#[doc(inline)]
pub use std::os::windows::io::{
AsHandle, BorrowedHandle, OwnedHandle,
AsSocket, BorrowedSocket, OwnedSocket,
};
}
}