#[non_exhaustive]pub enum SignalError {
InvalidSubcarrierCount {
expected: usize,
actual: usize,
},
InvalidAntennaConfig {
message: String,
},
AmplitudeOutOfRange {
value: f64,
min: f64,
max: f64,
},
PhaseUnwrapFailed {
reason: String,
},
FftFailed {
message: String,
},
FilterError {
message: String,
},
InsufficientSamples {
required: usize,
available: usize,
},
LowSignalQuality {
snr_db: f64,
threshold_db: f64,
},
TimestampSync {
message: String,
},
InvalidFrequencyBand {
band: String,
},
}Expand description
Errors related to CSI signal processing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSubcarrierCount
Invalid number of subcarriers in CSI data
Fields
InvalidAntennaConfig
Invalid antenna configuration
AmplitudeOutOfRange
Signal amplitude out of valid range
Fields
PhaseUnwrapFailed
Phase unwrapping failed
FftFailed
FFT operation failed
FilterError
Filter design or application error
InsufficientSamples
Insufficient samples for processing
LowSignalQuality
Signal quality too low for reliable processing
TimestampSync
Timestamp synchronization error
InvalidFrequencyBand
Invalid frequency band
Implementations§
Source§impl SignalError
impl SignalError
Sourcepub const fn is_recoverable(&self) -> bool
pub const fn is_recoverable(&self) -> bool
Returns true if this error is recoverable.
Trait Implementations§
Source§impl Debug for SignalError
impl Debug for SignalError
Source§impl Display for SignalError
impl Display for SignalError
Source§impl Error for SignalError
impl Error for SignalError
1.30.0 · 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()
Source§impl From<SignalError> for CoreError
impl From<SignalError> for CoreError
Source§fn from(source: SignalError) -> Self
fn from(source: SignalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignalError
impl RefUnwindSafe for SignalError
impl Send for SignalError
impl Sync for SignalError
impl Unpin for SignalError
impl UnsafeUnpin for SignalError
impl UnwindSafe for SignalError
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