seify-rtlsdr 0.0.3

Rusty RTL-SDR Driver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

#[derive(Debug, Error)]
pub enum RtlsdrError {
    #[error("RtlSdr error {0}")]
    RtlsdrErr(String),
    #[error("USB error")]
    Usb(#[from] rusb::Error),
}

/// A result of a function that may return a `Error`.
pub type Result<T> = std::result::Result<T, RtlsdrError>;