pub struct DispatchKeyEventParamsBuilder { /* private fields */ }Implementations§
Source§impl DispatchKeyEventParamsBuilder
impl DispatchKeyEventParamsBuilder
pub fn type(self, type: impl Into<DispatchKeyEventType>) -> Self
pub fn modifiers(self, modifiers: impl Into<i64>) -> Self
pub fn timestamp(self, timestamp: impl Into<TimeSinceEpoch>) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn unmodified_text(self, unmodified_text: impl Into<String>) -> Self
pub fn key_identifier(self, key_identifier: impl Into<String>) -> Self
pub fn code(self, code: impl Into<String>) -> Self
pub fn key(self, key: impl Into<String>) -> Self
pub fn windows_virtual_key_code( self, windows_virtual_key_code: impl Into<i64>, ) -> Self
pub fn native_virtual_key_code( self, native_virtual_key_code: impl Into<i64>, ) -> Self
pub fn auto_repeat(self, auto_repeat: impl Into<bool>) -> Self
pub fn is_keypad(self, is_keypad: impl Into<bool>) -> Self
pub fn is_system_key(self, is_system_key: impl Into<bool>) -> Self
pub fn location(self, location: impl Into<i64>) -> Self
pub fn command(self, command: impl Into<String>) -> Self
pub fn commands<I, S>(self, commands: I) -> Self
pub fn build(self) -> Result<DispatchKeyEventParams, String>
Trait Implementations§
Source§impl Clone for DispatchKeyEventParamsBuilder
impl Clone for DispatchKeyEventParamsBuilder
Source§fn clone(&self) -> DispatchKeyEventParamsBuilder
fn clone(&self) -> DispatchKeyEventParamsBuilder
Returns a duplicate 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 Default for DispatchKeyEventParamsBuilder
impl Default for DispatchKeyEventParamsBuilder
Source§fn default() -> DispatchKeyEventParamsBuilder
fn default() -> DispatchKeyEventParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DispatchKeyEventParamsBuilder
impl RefUnwindSafe for DispatchKeyEventParamsBuilder
impl Send for DispatchKeyEventParamsBuilder
impl Sync for DispatchKeyEventParamsBuilder
impl Unpin for DispatchKeyEventParamsBuilder
impl UnwindSafe for DispatchKeyEventParamsBuilder
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