1 2 3 4 5 6 7 8 9
use thiserror::Error; /// Error type for Log #[derive(Debug, Error)] pub enum LogError<T> { /// Log is full. Push operation are not allowed anymore. #[error("Log is full.")] LogCapacityExceeded(T), }