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