blob: 84e54aca41a1772596dfbcbf30f2e737fdefa0b1 [file] [log] [blame]
use crate::models::polled_messages::PolledMessage;
use std::fmt::Debug;
/// The trait represent the logic responsible for handling the message and is used by the `IggyClient`.
pub trait MessageHandler: Send + Sync + Debug {
fn handle(&self, message: PolledMessage);
}