Skip to main content

libmic_rs/
error.rs

1#[derive(Debug)]
2pub enum MicError {
3    DeviceNotFound,
4    StreamBuildFailed,
5    Io(std::io::Error),
6    Other(String),
7}
8
9impl From<std::io::Error> for MicError {
10    fn from(e: std::io::Error) -> Self {
11        MicError::Io(e)
12    }
13}