Registry / utility / shrev
library1.1.3rscratesunverified

Event channel, meant to be used with `specs`.

# Cargo.toml [dependencies] shrev = "1.1.3"
INSTALL
IMPORT
SIG · SHREV
S
shrev
utilityrustv1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EventChannel
use shrev::EventChannel;

Creates an event channel and reads events.

use shrev::EventChannel; fn main() { let mut channel = EventChannel::<u32>::new(); channel.single_write(42); let mut reader = channel.register_reader(); for event in channel.read(&mut reader) { println!("Event: {}", event); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
shrev — cargo add shrev · libregistry