Add dummy FileDesc struct for doc target

This commit is contained in:
Dominik Stolz 2021-07-01 16:50:14 +02:00
parent 12fbabd27f
commit 2a4d012103

View file

@ -5,9 +5,13 @@
use crate::io::Result;
use crate::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
use crate::process;
#[cfg(not(doc))]
use crate::sys::fd::FileDesc;
use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
#[cfg(doc)]
struct FileDesc;
/// This type represents a file descriptor that refers to a process.
///
/// A `PidFd` can be obtained by setting the corresponding option on [`Command`]