pub struct DispatchKeyEventBuilder { /* private fields */ }Implementations§
Source§impl DispatchKeyEventBuilder
impl DispatchKeyEventBuilder
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<DispatchKeyEvent, String>
Trait Implementations§
Source§impl Clone for DispatchKeyEventBuilder
impl Clone for DispatchKeyEventBuilder
Source§fn clone(&self) -> DispatchKeyEventBuilder
fn clone(&self) -> DispatchKeyEventBuilder
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 DispatchKeyEventBuilder
impl Default for DispatchKeyEventBuilder
Source§fn default() -> DispatchKeyEventBuilder
fn default() -> DispatchKeyEventBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DispatchKeyEventBuilder
impl RefUnwindSafe for DispatchKeyEventBuilder
impl Send for DispatchKeyEventBuilder
impl Sync for DispatchKeyEventBuilder
impl Unpin for DispatchKeyEventBuilder
impl UnsafeUnpin for DispatchKeyEventBuilder
impl UnwindSafe for DispatchKeyEventBuilder
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