timerfd 1.6.0

A rust interface to the Linux kernel's timerfd API
Documentation
Build #1165524 2024-03-21T12:56:44.923122+00:00
# rustc version
rustc 1.79.0-nightly (1388d7a06 2024-03-20)# docs.rs version
docsrs 0.6.0 (3f7b37ba 2024-03-20)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/timerfd-1.6.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/timerfd-1.6.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240320-1.79.0-nightly-1388d7a06\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-pc-windows-msvc", kill_on_drop: false }`
[INFO] [stdout] 0836ab272f5368159ff2d6780e8aea37a27c195847895de8abf84a83f7e4f8b2
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "0836ab272f5368159ff2d6780e8aea37a27c195847895de8abf84a83f7e4f8b2", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting timerfd v1.6.0 (/opt/rustwide/workdir)
[INFO] [stderr] error[E0433]: failed to resolve: could not find `unix` in `os`
[INFO] [stderr]   --> src/lib.rs:46:14
[INFO] [stderr]    |
[INFO] [stderr] 46 | use std::os::unix::prelude::*;
[INFO] [stderr]    |              ^^^^ could not find `unix` in `os`
[INFO] [stderr]    |
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/1388d7a069d872bcfe5e5dd97ef61fa0a586fac0\library\std\src\os\mod.rs:26:9
[INFO] [stderr] note: found an item that was configured out
[INFO] [stderr]   --> /rustc/1388d7a069d872bcfe5e5dd97ef61fa0a586fac0\library\std\src\os\mod.rs:64:9
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `rustix::time`
[INFO] [stderr]   --> src/lib.rs:51:13
[INFO] [stderr]    |
[INFO] [stderr] 51 | use rustix::time::{Itimerspec, TimerfdClockId};
[INFO] [stderr]    |             ^^^^ could not find `time` in `rustix`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `rustix::time`
[INFO] [stderr]    --> src/lib.rs:128:13
[INFO] [stderr]     |
[INFO] [stderr] 128 | use rustix::time::{TimerfdFlags, TimerfdTimerFlags};
[INFO] [stderr]     |             ^^^^ could not find `time` in `rustix`
[INFO] [stderr] 
[INFO] [stderr] error[E0432]: unresolved import `rustix::time`
[INFO] [stderr]  --> src/structs.rs:3:13
[INFO] [stderr]   |
[INFO] [stderr] 3 | use rustix::time::{Itimerspec, Timespec};
[INFO] [stderr]   |             ^^^^ could not find `time` in `rustix`
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `AsRawFd` in this scope
[INFO] [stderr]    --> src/lib.rs:243:6
[INFO] [stderr]     |
[INFO] [stderr] 243 | impl AsRawFd for TimerFd {
[INFO] [stderr]     |      ^^^^^^^ not found in this scope
[INFO] [stderr]     |
[INFO] [stderr] help: consider importing this trait
[INFO] [stderr]     |
[INFO] [stderr] 46  + use rustix::fd::AsRawFd;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RawFd` in this scope
[INFO] [stderr]    --> src/lib.rs:244:28
[INFO] [stderr]     |
[INFO] [stderr] 244 |     fn as_raw_fd(&self) -> RawFd {
[INFO] [stderr]     |                            ^^^^^ not found in this scope
[INFO] [stderr]     |
[INFO] [stderr] help: consider importing this type alias
[INFO] [stderr]     |
[INFO] [stderr] 46  + use rustix::fd::RawFd;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] error[E0405]: cannot find trait `FromRawFd` in this scope
[INFO] [stderr]    --> src/lib.rs:249:6
[INFO] [stderr]     |
[INFO] [stderr] 249 | impl FromRawFd for TimerFd {
[INFO] [stderr]     |      ^^^^^^^^^ not found in this scope
[INFO] [stderr]     |
[INFO] [stderr] help: consider importing this trait
[INFO] [stderr]     |
[INFO] [stderr] 46  + use rustix::fd::FromRawFd;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] error[E0412]: cannot find type `RawFd` in this scope
[INFO] [stderr]    --> src/lib.rs:250:31
[INFO] [stderr]     |
[INFO] [stderr] 250 |     unsafe fn from_raw_fd(fd: RawFd) -> Self {
[INFO] [stderr]     |                               ^^^^^ not found in this scope
[INFO] [stderr]     |
[INFO] [stderr] help: consider importing this type alias
[INFO] [stderr]     |
[INFO] [stderr] 46  + use rustix::fd::RawFd;
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `TimerfdClockId::Realtime`
[INFO] [stderr]   --> src/lib.rs:58:22
[INFO] [stderr]    |
[INFO] [stderr] 58 |     Realtime       = TimerfdClockId::Realtime   as isize,
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ could not resolve path `TimerfdClockId::Realtime`
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]    = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `TimerfdClockId::RealtimeAlarm`
[INFO] [stderr]   --> src/lib.rs:63:22
[INFO] [stderr]    |
[INFO] [stderr] 63 |     RealtimeAlarm  = TimerfdClockId::RealtimeAlarm as isize,
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not resolve path `TimerfdClockId::RealtimeAlarm`
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]    = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `TimerfdClockId::Monotonic`
[INFO] [stderr]   --> src/lib.rs:67:22
[INFO] [stderr]    |
[INFO] [stderr] 67 |     Monotonic      = TimerfdClockId::Monotonic  as isize,
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^ could not resolve path `TimerfdClockId::Monotonic`
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]    = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `TimerfdClockId::Boottime`
[INFO] [stderr]   --> src/lib.rs:75:22
[INFO] [stderr]    |
[INFO] [stderr] 75 |     Boottime       = TimerfdClockId::Boottime   as isize,
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ could not resolve path `TimerfdClockId::Boottime`
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]    = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `TimerfdClockId::BoottimeAlarm`
[INFO] [stderr]   --> src/lib.rs:80:22
[INFO] [stderr]    |
[INFO] [stderr] 80 |     BoottimeAlarm  = TimerfdClockId::BoottimeAlarm as isize,
[INFO] [stderr]    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not resolve path `TimerfdClockId::BoottimeAlarm`
[INFO] [stderr]    |
[INFO] [stderr]    = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]    = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] error[E0433]: failed to resolve: could not resolve path `Timespec`
[INFO] [stderr]  --> src/structs.rs:7:27
[INFO] [stderr]   |
[INFO] [stderr] 7 | const TS_NULL: Timespec = Timespec { tv_sec: 0, tv_nsec: 0 };
[INFO] [stderr]   |                           ^^^^^^^^ could not resolve path `Timespec`
[INFO] [stderr]   |
[INFO] [stderr]   = note: this error was originally ignored because you are running `rustdoc`
[INFO] [stderr]   = note: try running again with `rustc` or `cargo check` and you may get a more detailed error
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0432, E0433.
[INFO] [stderr] For more information about an error, try `rustc --explain E0405`.
[INFO] [stderr] error: could not document `timerfd`
[INFO] running `Command { std: "docker" "inspect" "0836ab272f5368159ff2d6780e8aea37a27c195847895de8abf84a83f7e4f8b2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0836ab272f5368159ff2d6780e8aea37a27c195847895de8abf84a83f7e4f8b2", kill_on_drop: false }`
[INFO] [stdout] 0836ab272f5368159ff2d6780e8aea37a27c195847895de8abf84a83f7e4f8b2