pub enum EventSource {
Unknown,
Mouse,
Touchscreen,
Touchpad,
Joystick,
Keyboard,
}Variants§
Implementations§
Source§impl EventSource
impl EventSource
pub fn try_from_raw(attr: OH_NativeXComponent_EventSourceType) -> Option<Self>
Trait Implementations§
Source§impl Clone for EventSource
impl Clone for EventSource
Source§fn clone(&self) -> EventSource
fn clone(&self) -> EventSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EventSource
impl Debug for EventSource
Source§impl From<EventSource> for OH_NativeXComponent_EventSourceType
impl From<EventSource> for OH_NativeXComponent_EventSourceType
Source§fn from(attr: EventSource) -> Self
fn from(attr: EventSource) -> Self
Converts to this type from the input type.
Source§impl From<u32> for EventSource
impl From<u32> for EventSource
Source§fn from(attr: OH_NativeXComponent_EventSourceType) -> Self
fn from(attr: OH_NativeXComponent_EventSourceType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EventSource
impl PartialEq for EventSource
Source§fn eq(&self, other: &EventSource) -> bool
fn eq(&self, other: &EventSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EventSource
impl Eq for EventSource
impl StructuralPartialEq for EventSource
Auto Trait Implementations§
impl Freeze for EventSource
impl RefUnwindSafe for EventSource
impl Send for EventSource
impl Sync for EventSource
impl Unpin for EventSource
impl UnsafeUnpin for EventSource
impl UnwindSafe for EventSource
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