pub struct ChangeKeyboardControlAux {
pub key_click_percent: Option<i32>,
pub bell_percent: Option<i32>,
pub bell_pitch: Option<i32>,
pub bell_duration: Option<i32>,
pub led: Option<u32>,
pub led_mode: Option<LedMode>,
pub key: Option<u32>,
pub auto_repeat_mode: Option<AutoRepeatMode>,
}
Expand description
Auxiliary and optional information for the change_keyboard_control
function
Fields
key_click_percent: Option<i32>
bell_percent: Option<i32>
bell_pitch: Option<i32>
bell_duration: Option<i32>
led: Option<u32>
led_mode: Option<LedMode>
key: Option<u32>
auto_repeat_mode: Option<AutoRepeatMode>
Implementations
sourceimpl ChangeKeyboardControlAux
impl ChangeKeyboardControlAux
sourcepub fn new() -> ChangeKeyboardControlAux
pub fn new() -> ChangeKeyboardControlAux
Create a new instance with all fields unset / not present.
sourcepub fn key_click_percent<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
pub fn key_click_percent<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
Set the key_click_percent
field of this structure.
sourcepub fn bell_percent<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
pub fn bell_percent<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
Set the bell_percent
field of this structure.
sourcepub fn bell_pitch<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
pub fn bell_pitch<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
Set the bell_pitch
field of this structure.
sourcepub fn bell_duration<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
pub fn bell_duration<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<i32>>,
Set the bell_duration
field of this structure.
sourcepub fn led<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<u32>>,
pub fn led<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<u32>>,
Set the led
field of this structure.
sourcepub fn led_mode<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<LedMode>>,
pub fn led_mode<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<LedMode>>,
Set the led_mode
field of this structure.
sourcepub fn key<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<u32>>,
pub fn key<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<u32>>,
Set the key
field of this structure.
sourcepub fn auto_repeat_mode<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<AutoRepeatMode>>,
pub fn auto_repeat_mode<I>(self, value: I) -> ChangeKeyboardControlAux where
I: Into<Option<AutoRepeatMode>>,
Set the auto_repeat_mode
field of this structure.
Trait Implementations
sourceimpl Clone for ChangeKeyboardControlAux
impl Clone for ChangeKeyboardControlAux
sourcefn clone(&self) -> ChangeKeyboardControlAux
fn clone(&self) -> ChangeKeyboardControlAux
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChangeKeyboardControlAux
impl Debug for ChangeKeyboardControlAux
sourceimpl Default for ChangeKeyboardControlAux
impl Default for ChangeKeyboardControlAux
sourcefn default() -> ChangeKeyboardControlAux
fn default() -> ChangeKeyboardControlAux
Returns the “default value” for a type. Read more
sourceimpl Hash for ChangeKeyboardControlAux
impl Hash for ChangeKeyboardControlAux
sourceimpl Ord for ChangeKeyboardControlAux
impl Ord for ChangeKeyboardControlAux
sourceimpl PartialEq<ChangeKeyboardControlAux> for ChangeKeyboardControlAux
impl PartialEq<ChangeKeyboardControlAux> for ChangeKeyboardControlAux
sourcefn eq(&self, other: &ChangeKeyboardControlAux) -> bool
fn eq(&self, other: &ChangeKeyboardControlAux) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChangeKeyboardControlAux) -> bool
fn ne(&self, other: &ChangeKeyboardControlAux) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ChangeKeyboardControlAux> for ChangeKeyboardControlAux
impl PartialOrd<ChangeKeyboardControlAux> for ChangeKeyboardControlAux
sourcefn partial_cmp(&self, other: &ChangeKeyboardControlAux) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangeKeyboardControlAux) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ChangeKeyboardControlAux
impl Eq for ChangeKeyboardControlAux
impl StructuralEq for ChangeKeyboardControlAux
impl StructuralPartialEq for ChangeKeyboardControlAux
Auto Trait Implementations
impl RefUnwindSafe for ChangeKeyboardControlAux
impl Send for ChangeKeyboardControlAux
impl Sync for ChangeKeyboardControlAux
impl Unpin for ChangeKeyboardControlAux
impl UnwindSafe for ChangeKeyboardControlAux
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more