cu-ratelimit

Crates.iocu-ratelimit
lib.rscu-ratelimit
version0.9.1
created_at2025-05-26 23:31:44.013916+00
updated_at2025-09-12 20:32:58.664666+00
descriptionA simple generic rate limiter for Copper
homepagehttps://github.com/copper-project
repositoryhttps://github.com/copper-project/copper-rs
max_upload_size
id1690414
size52,218
Guillaume Binet (gbin)

documentation

README

This is a Generic Rate limiter for Copper

If you have a source that is going too fast, you can use this simple task to skip over messages.

Task and Input

  (
            id: "rl1",
            type: "cu_ratelimit::CuRateLimit<MyPayload>", // Set your type here
            config: {
                "rate": 10.0,  // in Hz
            },
        ),
 [...]

Configuration

  • rate: the maximum rate in Hz

Output

It will match the Input type, set it as a type specialization like ie: replace MyPayload to your actual type in the config.

Commit count: 741

cargo fmt