feat: with subscription

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-09-23 22:38:12 +02:00
parent 05fb5c0722
commit 7b08b16cdb
10 changed files with 167 additions and 21 deletions

View File

@@ -38,7 +38,11 @@ impl Display for EventInfo {
}
pub trait Event: Serializer + Deserializer {
fn event_info(&self) -> EventInfo;
fn event_info() -> EventInfo;
fn int_event_info(&self) -> EventInfo {
Self::event_info()
}
}
pub mod errors;