use-event-stream 0.1.0

Ordered in-memory event stream wrapper for RustUse events.
Documentation
  • Coverage
  • 11.11%
    1 out of 9 items documented1 out of 8 items with examples
  • Size
  • Source code size: 5.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 341.36 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-event
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-event-stream

Ordered in-memory event stream wrapper for RustUse events.

Install

[dependencies]
use-event-stream = "0.1.0"

Example

use use_event_stream::EventStream;

let mut stream = EventStream::new();
stream.push("command.started");

assert_eq!(stream.len(), 1);
assert_eq!(stream.iter().next(), Some(&"command.started"));

Scope

  • Keep an ordered in-memory collection of events.
  • Provide push, iteration, length, and emptiness helpers.
  • Leave event type and ownership to the caller.

Non-Goals

  • No async stream abstraction.
  • No broker, queue, or scheduler.
  • No persistence or backpressure.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license