pub struct RepeatConfig {
pub delay: Duration,
pub interval: Duration,
}Expand description
When a held key starts repeating, and how fast.
Fields§
§delay: DurationHow long a key must be held before the first repeat.
interval: DurationThe gap between repeats after that.
Trait Implementations§
Source§impl Clone for RepeatConfig
impl Clone for RepeatConfig
impl Copy for RepeatConfig
Source§impl Debug for RepeatConfig
impl Debug for RepeatConfig
Source§impl Default for RepeatConfig
impl Default for RepeatConfig
impl Eq for RepeatConfig
Source§impl PartialEq for RepeatConfig
impl PartialEq for RepeatConfig
impl StructuralPartialEq for RepeatConfig
Auto Trait Implementations§
impl Freeze for RepeatConfig
impl RefUnwindSafe for RepeatConfig
impl Send for RepeatConfig
impl Sync for RepeatConfig
impl Unpin for RepeatConfig
impl UnsafeUnpin for RepeatConfig
impl UnwindSafe for RepeatConfig
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