Struct zng_view_api::config::KeyRepeatConfig
source · pub struct KeyRepeatConfig {
pub start_delay: Duration,
pub interval: Duration,
}Expand description
System settings that define the key pressed repeat.
Fields§
§start_delay: DurationDelay before repeat starts.
interval: DurationDelay before each repeat event after the first.
Trait Implementations§
source§impl Clone for KeyRepeatConfig
impl Clone for KeyRepeatConfig
source§fn clone(&self) -> KeyRepeatConfig
fn clone(&self) -> KeyRepeatConfig
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 KeyRepeatConfig
impl Debug for KeyRepeatConfig
source§impl<'de> Deserialize<'de> for KeyRepeatConfig
impl<'de> Deserialize<'de> for KeyRepeatConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for KeyRepeatConfig
impl PartialEq for KeyRepeatConfig
source§fn eq(&self, other: &KeyRepeatConfig) -> bool
fn eq(&self, other: &KeyRepeatConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for KeyRepeatConfig
impl Serialize for KeyRepeatConfig
impl Copy for KeyRepeatConfig
impl Eq for KeyRepeatConfig
impl StructuralPartialEq for KeyRepeatConfig
Auto Trait Implementations§
impl Freeze for KeyRepeatConfig
impl RefUnwindSafe for KeyRepeatConfig
impl Send for KeyRepeatConfig
impl Sync for KeyRepeatConfig
impl Unpin for KeyRepeatConfig
impl UnwindSafe for KeyRepeatConfig
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