rusty-dsp/src/error.rs

12 lines
196 B
Rust

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())
}