#[non_exhaustive]pub enum FrameRateError {
ZeroNumerator,
ZeroDenominator,
ExceedsTimelineResolution,
}Expand description
Invalid rational frame rate.
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.
ZeroNumerator
Zero numerator.
ZeroDenominator
Zero denominator.
ExceedsTimelineResolution
Frame duration is below one tick.
Trait Implementations§
Source§impl Clone for FrameRateError
impl Clone for FrameRateError
impl Copy for FrameRateError
Source§impl Debug for FrameRateError
impl Debug for FrameRateError
Source§impl Display for FrameRateError
impl Display for FrameRateError
impl Eq for FrameRateError
Source§impl Error for FrameRateError
impl Error for FrameRateError
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 PartialEq for FrameRateError
impl PartialEq for FrameRateError
impl StructuralPartialEq for FrameRateError
Auto Trait Implementations§
impl Freeze for FrameRateError
impl RefUnwindSafe for FrameRateError
impl Send for FrameRateError
impl Sync for FrameRateError
impl Unpin for FrameRateError
impl UnsafeUnpin for FrameRateError
impl UnwindSafe for FrameRateError
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