pub enum PollingRate {
Hz30,
Hz60,
Hz90,
Hz120,
Custom(u32),
}Expand description
Input polling rate options
Variants§
Hz30
30Hz - Lower latency, more power efficient
Hz60
60Hz - Default, matches VBlank rate
Hz90
90Hz - Higher responsiveness
Hz120
120Hz - Highest responsiveness, more CPU usage
Custom(u32)
Custom rate in Hz (clamped to 10-240 range)
Implementations§
Source§impl PollingRate
impl PollingRate
Trait Implementations§
Source§impl Clone for PollingRate
impl Clone for PollingRate
Source§fn clone(&self) -> PollingRate
fn clone(&self) -> PollingRate
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PollingRate
impl Debug for PollingRate
Source§impl Default for PollingRate
impl Default for PollingRate
Source§impl From<PollingRate> for InputConfig
impl From<PollingRate> for InputConfig
Source§fn from(poll_rate: PollingRate) -> Self
fn from(poll_rate: PollingRate) -> Self
Converts to this type from the input type.
impl Copy for PollingRate
Auto Trait Implementations§
impl Freeze for PollingRate
impl RefUnwindSafe for PollingRate
impl Send for PollingRate
impl Sync for PollingRate
impl Unpin for PollingRate
impl UnwindSafe for PollingRate
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)