use-event-dispatch 0.1.0

Dispatch status and outcome primitives for RustUse events.
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented1 out of 7 items with examples
  • Size
  • Source code size: 5.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 400.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-dispatch

Dispatch status and outcome primitives for RustUse events.

Install

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

Example

use use_event_dispatch::{DispatchOutcome, DispatchStatus};

let outcome = DispatchOutcome::dispatched();

assert_eq!(outcome.status, DispatchStatus::Dispatched);
assert!(outcome.is_success());

Scope

  • Represent simple dispatch outcomes.
  • Preserve optional message text on skipped or failed outcomes.
  • Stay independent from any dispatcher runtime.

Non-Goals

  • No dispatch loop.
  • No broker, queue, retry, or scheduler.
  • No handler registry.

Status

Experimental v0.1.0 primitive.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license