Skip to main content

Crate use_event_status

Crate use_event_status 

Source
Expand description

§use-event-status

Event status labels for RustUse event primitives.

§Install

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

§Example

use use_event_status::EventStatus;

let status = EventStatus::Handled;

assert_eq!(status.as_str(), "handled");
assert!(status.is_terminal());

§Scope

  • Provide simple event lifecycle labels.
  • Offer small helpers for terminal and failure statuses.
  • Keep status interpretation with the caller.

§Non-Goals

  • No workflow engine.
  • No retry policy.
  • No event state machine.

§Status

Experimental v0.1.0 primitive.

§License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license

Enums§

EventStatus