Skip to content

Commit

Permalink
iline docs
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed Apr 30, 2023
1 parent c63c433 commit 27f26ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/os/unix/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
}
8 changes: 8 additions & 0 deletions src/os/windows/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}
}

0 comments on commit 27f26ea

Please sign in to comment.