timeout-iterator 1.1.1

TimeoutIterator is a wrapper over any iterator that adds peek_timeout and next_timeout functions. The canonical use-case is parsing multi-line free-form records (such as tailing a log fime) where it is desirable to consume the very last line, and peek whether the record continues on the next time, but not block indefinitely on the peek.
Documentation
Build #329559 2020-12-27 20:20:37

# rustc version rustc 1.51.0-nightly (0b644e419 2020-12-26)

# docs.rs version docsrs 0.6.0 (743bbf6 2020-12-25)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/timeout-iterator-1.1.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/timeout-iterator-1.1.1/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" "3221225472" "--cpus" "2" "--user" "1001:1001" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs\"" "-j2" "--" "-Z" "unstable-options" "--resource-suffix" "-20201226-1.51.0-nightly-0b644e419" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }` [INFO] [stdout] e62039ca6bf74a06b75a6666bb5ab8c82355674b63075ec8fed8a7ee6afd9d0f [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" "e62039ca6bf74a06b75a6666bb5ab8c82355674b63075ec8fed8a7ee6afd9d0f", kill_on_drop: false }` [INFO] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.56 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking futures-core v0.3.8 [INFO] [stderr] Compiling proc-macro-nested v0.1.6 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking pin-project-lite v0.2.0 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Compiling tokio v1.0.1 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling async-stream-impl v0.3.0 [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking async-stream v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.0 [INFO] [stderr] Checking futures-executor v0.3.8 [INFO] [stderr] Checking futures v0.3.8 [INFO] [stderr] Documenting timeout-iterator v1.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 29.76s [INFO] running `Command { std: "docker" "inspect" "e62039ca6bf74a06b75a6666bb5ab8c82355674b63075ec8fed8a7ee6afd9d0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e62039ca6bf74a06b75a6666bb5ab8c82355674b63075ec8fed8a7ee6afd9d0f", kill_on_drop: false }` [INFO] [stdout] e62039ca6bf74a06b75a6666bb5ab8c82355674b63075ec8fed8a7ee6afd9d0f