use std::fmt::Debug; #[derive(Clone, PartialEq, Debug)] pub enum DspError { WouldBlock, Error(String), } pub fn new_error(msg: &str) -> DspError { DspError::Error(msg.to_string()) }