timeout-iterator 1.0.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 #329285 2020-12-26 22:51:38

# rustc version rustc 1.50.0-nightly (bb178237c 2020-12-25)

# 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.0.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/timeout-iterator-1.0.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" "-20201225-1.50.0-nightly-bb178237c" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ba883ecf9624c2b46a5bb254a78df35c9c1c433341de1639534cfea8cd1bc96e [INFO] running `Command { std: "docker" "start" "-a" "ba883ecf9624c2b46a5bb254a78df35c9c1c433341de1639534cfea8cd1bc96e", kill_on_drop: false }` [INFO] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied [INFO] [stderr] Documenting timeout-iterator v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "ba883ecf9624c2b46a5bb254a78df35c9c1c433341de1639534cfea8cd1bc96e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba883ecf9624c2b46a5bb254a78df35c9c1c433341de1639534cfea8cd1bc96e", kill_on_drop: false }` [INFO] [stdout] ba883ecf9624c2b46a5bb254a78df35c9c1c433341de1639534cfea8cd1bc96e