Expand description
§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