iline docs

pull/1036/head
jtnunley 2 years ago
parent c63c43341a
commit 27f26ea430

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

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

Loading…
Cancel
Save