pub enum AcarsError {
InvalidChannelConfig(String),
NonIntegerDecimation {
source_rate_hz: f64,
if_rate_hz: f64,
},
Io {
path: PathBuf,
source: Error,
},
InvalidInput(String),
}Expand description
All ways sdr-acars can fail.
Variants§
InvalidChannelConfig(String)
ChannelBank::new got an invalid configuration: empty
channel list, source rate / center freq combination that
can’t fit all channels, or per-channel rate mismatch.
NonIntegerDecimation
Decimation factor isn’t an integer for the requested
source rate / IF rate combo. Source rate must be an
integer multiple of 12_500 Hz.
Io
CLI / file I/O — failed to read input file.
InvalidInput(String)
CLI — input file format isn’t recognized (WAV header missing, IQ file size not a multiple of 4 bytes for interleaved i16 I/Q, etc.).
Trait Implementations§
Source§impl Debug for AcarsError
impl Debug for AcarsError
Source§impl Display for AcarsError
impl Display for AcarsError
Source§impl Error for AcarsError
impl Error for AcarsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AcarsError
impl !RefUnwindSafe for AcarsError
impl Send for AcarsError
impl Sync for AcarsError
impl Unpin for AcarsError
impl UnsafeUnpin for AcarsError
impl !UnwindSafe for AcarsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more