msr_plugin_csv_event_journal/api/
mod.rs1pub use crate::internal::context::{
3 Config, EntryNotRecorded, EntryRecorded, RecordEntryOutcome, State, Status,
4};
5
6pub mod controller;
7pub use self::controller::Controller;
8
9pub mod command;
10pub use self::command::Command;
11
12pub mod query;
13pub use self::query::Query;
14
15pub mod event;
16pub use self::event::Event;
17
18#[derive(Debug)]
19pub enum Message {
20 Command(Command),
21 Query(Query),
22}
23
24impl From<Command> for Message {
25 fn from(command: Command) -> Self {
26 Self::Command(command)
27 }
28}
29
30impl From<Query> for Message {
31 fn from(query: Query) -> Self {
32 Self::Query(query)
33 }
34}