use std::fmt::{Display, Formatter, Result};
#[derive(Debug)]
pub enum Error {
ClockRateTooHigh
}
impl Display for Error {
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
match self {
Error::ClockRateTooHigh => f.write_str("the clock rate is too high for the requested sample rate")
}
}
}
impl std::error::Error for Error {}