Skip to main content

Crate use_event_kind

Crate use_event_kind 

Source
Expand description

§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

Enums§

EventKind