1 2 3 4 5 6 7 8 9 10 11
use thiserror::Error; #[derive(Debug, Error)] pub enum BondiError { #[error("Invalid Input")] InvalidInput, #[error("Writer already exists")] WriterAlreadyExists, #[error("No reader available")] NoReaderAvailable, }
1 2 3 4 5 6 7 8 9 10 11
use thiserror::Error; #[derive(Debug, Error)] pub enum BondiError { #[error("Invalid Input")] InvalidInput, #[error("Writer already exists")] WriterAlreadyExists, #[error("No reader available")] NoReaderAvailable, }