use crate::app::Message;
use anyhow::Result;
use std::sync::mpsc;

#[allow(dead_code)]
pub trait Protocol: Send {
    fn run(&mut self) -> Result<()>;
}

#[allow(dead_code)]
pub struct ProtocolContext {
    pub message_tx: mpsc::Sender<Message>,
    pub command_rx: mpsc::Receiver<String>,
}
