pub enum SamplingConfigError {
DivideInvalid,
FreqInvalid(Freq<u32>),
FreqInvalidF(Freq<f32>),
PeriodInvalid(Duration),
FreqOutOfRange(Freq<u32>, Freq<u32>, Freq<u32>),
FreqOutOfRangeF(Freq<f32>, Freq<f32>, Freq<f32>),
PeriodOutOfRange(Duration, Duration, Duration),
}
Available on crate features
derive
and sampling_config
only.Expand description
An error produced by the sampling configuration.
Variants§
DivideInvalid
Invalid sampling divide.
FreqInvalid(Freq<u32>)
Invalid sampling frequency.
FreqInvalidF(Freq<f32>)
Invalid sampling frequency.
PeriodInvalid(Duration)
Invalid sampling period.
FreqOutOfRange(Freq<u32>, Freq<u32>, Freq<u32>)
Sampling frequency is out of range.
FreqOutOfRangeF(Freq<f32>, Freq<f32>, Freq<f32>)
Sampling frequency is out of range.
PeriodOutOfRange(Duration, Duration, Duration)
Sampling period is out of range.
Trait Implementations§
Source§impl Clone for SamplingConfigError
impl Clone for SamplingConfigError
Source§fn clone(&self) -> SamplingConfigError
fn clone(&self) -> SamplingConfigError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplingConfigError
impl Debug for SamplingConfigError
Source§impl Display for SamplingConfigError
impl Display for SamplingConfigError
Source§impl Error for SamplingConfigError
impl Error for SamplingConfigError
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<Infallible> for SamplingConfigError
impl From<Infallible> for SamplingConfigError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<SamplingConfigError> for ModulationError
Available on crate feature modulation
only.
impl From<SamplingConfigError> for ModulationError
Available on crate feature
modulation
only.Source§fn from(e: SamplingConfigError) -> Self
fn from(e: SamplingConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SamplingConfigError
impl PartialEq for SamplingConfigError
impl Copy for SamplingConfigError
impl StructuralPartialEq for SamplingConfigError
Auto Trait Implementations§
impl Freeze for SamplingConfigError
impl RefUnwindSafe for SamplingConfigError
impl Send for SamplingConfigError
impl Sync for SamplingConfigError
impl Unpin for SamplingConfigError
impl UnwindSafe for SamplingConfigError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.