Enum spectrum_analyzer::FrequencyLimitError[][src]

pub enum FrequencyLimitError {
    ValueBelowMinimum(f32),
    ValueAboveNyquist(f32),
    InvalidRange(f32f32),
}
Expand description

Possible errors when creating a FrequencyLimit-object.

Variants

ValueBelowMinimum(f32)

If the minimum value is below 0. Negative frequencies are not supported.

Tuple Fields of ValueBelowMinimum

0: f32
ValueAboveNyquist(f32)

If the maximum value is above Nyquist frequency. Nyquist-Frequency is the maximum detectable frequency.

Tuple Fields of ValueAboveNyquist

0: f32
InvalidRange(f32f32)

Either the corresponding value is below or above the minimum/maximum or the first member of the tuple is bigger than the second.

Tuple Fields of InvalidRange

0: f321: f32

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.