event_sync 0.4.4

A crate that can be used to synchronize events to only occur between fixed gaps of time.
Documentation
Build #1880947 2025-03-17 22:38:02

# rustc version rustc 1.87.0-nightly (227690a25 2025-03-16)

# docs.rs version docsrs 0.6.0 (004a02c4 2025-03-05)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/event_sync-0.4.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/event_sync-0.4.4/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250316-1.87.0-nightly-227690a25\", \"--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-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stdout] e8ae45797cdb5bbe56d739a22a1b074f81407bd9b73877b9f3f6b58c76b5914c [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" "e8ae45797cdb5bbe56d739a22a1b074f81407bd9b73877b9f3f6b58c76b5914c", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: creation, immutable_clones, pausing, serde, waiting [INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true` [INFO] [stderr] to the [[example]] target configuration of at least one example. [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting event_sync v0.4.4 (/opt/rustwide/workdir) [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:89:29 [INFO] [stderr] | [INFO] [stderr] 89 | /// Those being [`Mutable`](Mutable), and [`Immutable`](Immutable). [INFO] [stderr] | --------- ^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 89 - /// Those being [`Mutable`](Mutable), and [`Immutable`](Immutable). [INFO] [stderr] 89 + /// Those being [`Mutable`], and [`Immutable`](Immutable). [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:89:57 [INFO] [stderr] | [INFO] [stderr] 89 | /// Those being [`Mutable`](Mutable), and [`Immutable`](Immutable). [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 89 - /// Those being [`Mutable`](Mutable), and [`Immutable`](Immutable). [INFO] [stderr] 89 + /// Those being [`Mutable`](Mutable), and [`Immutable`]. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:122:31 [INFO] [stderr] | [INFO] [stderr] 122 | /// Any copy of [`EventSync`](EventSync) with this label will be unable to manipulate the underlying data. [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 122 - /// Any copy of [`EventSync`](EventSync) with this label will be unable to manipulate the underlying data. [INFO] [stderr] 122 + /// Any copy of [`EventSync`] with this label will be unable to manipulate the underlying data. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:141:31 [INFO] [stderr] | [INFO] [stderr] 141 | /// Any copy of [`EventSync`](EventSync) with this label will be able to modify any underlying data. [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 141 - /// Any copy of [`EventSync`](EventSync) with this label will be able to modify any underlying data. [INFO] [stderr] 141 + /// Any copy of [`EventSync`] with this label will be able to modify any underlying data. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:369:47 [INFO] [stderr] | [INFO] [stderr] 369 | /// Creates a new instance of [`EventSync`](EventSync). [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 369 - /// Creates a new instance of [`EventSync`](EventSync). [INFO] [stderr] 369 + /// Creates a new instance of [`EventSync`]. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:452:47 [INFO] [stderr] | [INFO] [stderr] 452 | /// Creates a new instance of [`EventSync`](EventSync) with the given starting time. [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 452 - /// Creates a new instance of [`EventSync`](EventSync) with the given starting time. [INFO] [stderr] 452 + /// Creates a new instance of [`EventSync`] with the given starting time. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:492:47 [INFO] [stderr] | [INFO] [stderr] 492 | /// Creates a new instance of [`EventSync`](EventSync) with the given starting tick. [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 492 - /// Creates a new instance of [`EventSync`](EventSync) with the given starting tick. [INFO] [stderr] 492 + /// Creates a new instance of [`EventSync`] with the given starting tick. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:545:59 [INFO] [stderr] | [INFO] [stderr] 545 | /// This creates an Immutable instance of [`EventSync`](EventSync). [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 545 - /// This creates an Immutable instance of [`EventSync`](EventSync). [INFO] [stderr] 545 + /// This creates an Immutable instance of [`EventSync`]. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/lib.rs:550:45 [INFO] [stderr] | [INFO] [stderr] 550 | /// Additionally, Immutable [`EventSync`](EventSync) can only create other Immutable instances of itself. [INFO] [stderr] | ----------- ^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 550 - /// Additionally, Immutable [`EventSync`](EventSync) can only create other Immutable instances of itself. [INFO] [stderr] 550 + /// Additionally, Immutable [`EventSync`] can only create other Immutable instances of itself. [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `event_sync` (lib doc) generated 9 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/event_sync/index.html [INFO] running `Command { std: "docker" "inspect" "e8ae45797cdb5bbe56d739a22a1b074f81407bd9b73877b9f3f6b58c76b5914c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8ae45797cdb5bbe56d739a22a1b074f81407bd9b73877b9f3f6b58c76b5914c", kill_on_drop: false }` [INFO] [stdout] e8ae45797cdb5bbe56d739a22a1b074f81407bd9b73877b9f3f6b58c76b5914c