seify_rtlsdr/
error.rs

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