Enum keyboard_types::webdriver::Event
source · [−]pub enum Event {
Keyboard(KeyboardEvent),
Composition(CompositionEvent),
}
Expand description
Either a KeyboardEvent
or a CompositionEvent
.
Returned by the send_keys
function.
Variants
Keyboard(KeyboardEvent)
Composition(CompositionEvent)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
sourcefn 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
sourceimpl From<CompositionEvent> for Event
impl From<CompositionEvent> for Event
sourcefn from(v: CompositionEvent) -> Event
fn from(v: CompositionEvent) -> Event
Converts to this type from the input type.
sourceimpl From<KeyboardEvent> for Event
impl From<KeyboardEvent> for Event
sourcefn from(v: KeyboardEvent) -> Event
fn from(v: KeyboardEvent) -> Event
Converts to this type from the input type.
impl Eq for Event
impl StructuralEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more