1 2 3 4 5 6 7 8 9 10 11 12 13
use ::thiserror::Error; use super::broker::BrokerError; /// Error type for unsubscribe operations in the messaging system. #[derive(Error, Debug)] pub enum UnSubError { /// Broker error. #[error("Broker error: {0}")] BrokerError(#[from] BrokerError), #[error("No Unsubscribe handler found")] NoHandler, }