use-event-dispatch 0.1.0

Dispatch status and outcome primitives for RustUse events.
Documentation
1
2
3
4
5
6
7
8
9
10
use use_event_dispatch::{DispatchOutcome, DispatchStatus};

#[test]
fn builds_dispatch_outcome() {
    let outcome = DispatchOutcome::failed("handler error");

    assert_eq!(outcome.status, DispatchStatus::Failed);
    assert_eq!(outcome.message.as_deref(), Some("handler error"));
    assert!(!outcome.is_success());
}