use-event-kind 0.1.0

Event kind labels for RustUse event primitives.
Documentation
  • Coverage
  • 7.14%
    1 out of 14 items documented1 out of 4 items with examples
  • Size
  • Source code size: 5.56 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 351.16 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-kind

Event kind labels for RustUse event primitives.

Install

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

Example

use use_event_kind::EventKind;

let kind = EventKind::Started;
let custom = EventKind::custom("checkpoint");

assert_eq!(kind.as_str(), "started");
assert_eq!(custom.as_str(), "checkpoint");

Scope

  • Provide common event kind labels.
  • Support caller-defined custom labels.
  • Keep labels simple and display-friendly.

Non-Goals

  • No event taxonomy enforcement.
  • No event state machine.
  • No routing or handler behavior.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license