acme_core/events/mod.rs
1/*
2 Appellation: events <module>
3 Contrib: @FL03
4*/
5//! this module implements the various event primitives and utilities necessary for the sdk.
6#[doc(inline)]
7pub use self::event::EventBase;
8
9pub(crate) mod event;
10
11pub(crate) mod prelude {
12 #[doc(inline)]
13 pub use super::event::*;
14 #[doc(inline)]
15 pub use super::{RawEvent, RawEventKind};
16}
17
18pub trait RawEventKind {
19 private!();
20}
21
22pub trait EventKind: RawEventKind {
23 fn kind() -> &'static str;
24}
25
26pub trait RawEvent {
27 type Kind: RawEventKind;
28}