1use thiserror::Error;
23#[derive(Debug, Error)]
4pub enum RtlsdrError {
5#[error("RtlSdr error {0}")]
6RtlsdrErr(String),
7#[error("USB error")]
8Usb(#[from] rusb::Error),
9}
1011/// A result of a function that may return a `Error`.
12pub type Result<T> = std::result::Result<T, RtlsdrError>;