pub enum Error {
Clock(Error),
MaxFPS(usize),
}
Expand description
The errors that FPS
can return.
Keep in mind that Error::MaxFPS
will trigger panic on FPS::tick
or be returned as an error on FPS::try_tick
.
Variants§
Clock(Error)
The clock returned an error when calling Clock::try_now
.
MaxFPS(usize)
The maximum reading of Frames per second was reached. The internal deque reached it’s capacity.
Increase the MAX_FPS
to avoid this problem.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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