• François Laignel's avatar
    Bus::get_pollfd generate doc for both unix & windows · cd56d603
    François Laignel authored
    There are different implementations and signatures for `get_pollfd` depending
    on whether the target platform is unix or windows. When generating the doc,
    we need both implementations to appear regardless of the target platform. This
    commit is inspired by the way Rust `std` library deals with `process::Command`
    OS dependent variants
    (https://doc.rust-lang.org/std/process/struct.Command.html#impl-CommandExt).
    
    Documentation can't be accurate though as we can't use the`std::os::windows`
    on `unix` and vice versa. As a workaround a fake fd class matching the other
    platform is declared.
    
    This could be further enhanced once `#[doc(cfg(...))]` is stabilized
    (https://github.com/rust-lang/rust/issues/43781) by declaring `#[doc(cfg(unix))]`
    or `#[doc(cfg(windows))]` instead of the hard coded comments `This is supported
    on **Windows/Unix** only`. Unfortunately, these comments disappear when
    generating will `--all-features` because they are not part of the documentation
    in the gir file.
    cd56d603
Name
Last commit
Last update
docs Loading commit data...
examples Loading commit data...
gir-files Loading commit data...
gstreamer Loading commit data...
gstreamer-app Loading commit data...
gstreamer-audio Loading commit data...
gstreamer-base Loading commit data...
gstreamer-net Loading commit data...
gstreamer-pbutils Loading commit data...
gstreamer-player Loading commit data...
gstreamer-rtsp Loading commit data...
gstreamer-rtsp-server Loading commit data...
gstreamer-sdp Loading commit data...
gstreamer-video Loading commit data...
tutorials Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
Cargo.toml Loading commit data...
Gir_Gst.toml Loading commit data...
Gir_GstApp.toml Loading commit data...
Gir_GstAudio.toml Loading commit data...
Gir_GstBase.toml Loading commit data...
Gir_GstNet.toml Loading commit data...
Gir_GstPbutils.toml Loading commit data...
Gir_GstPlayer.toml Loading commit data...
Gir_GstRtsp.toml Loading commit data...
Gir_GstRtspServer.toml Loading commit data...
Gir_GstSdp.toml Loading commit data...
Gir_GstVideo.toml Loading commit data...
LICENSE-APACHE Loading commit data...
LICENSE-MIT Loading commit data...
README.md Loading commit data...