pub mod command;
pub mod event;
pub mod prelude {
pub use super::command::prelude::*;
pub use super::event::{AsyncOperationError, Event};
pub use super::{Message, MessageReceiver};
}
use crate::prelude::*;
#[derive(Debug)]
#[allow(clippy::large_enum_variant)] pub enum Message {
Command(Command),
Batch(Vec<Command>),
Event(Event),
}
pub trait MessageReceiver {
fn process_command(
&mut self,
message: &Message,
) -> impl std::future::Future<Output = color_eyre::Result<()>>;
}