#[repr(i32)]pub enum InputType {
Start = 0,
Stop = 1,
Pause = 2,
Resume = 3,
Reset = 4,
Back = 5,
Forward = 6,
KeyEvent = 7,
MouseEvent = 8,
WindowEvent = 9,
}
Variants§
Start = 0
Different types of basic input events
Stop = 1
Pause = 2
Resume = 3
Reset = 4
Back = 5
Forward = 6
KeyEvent = 7
Input types for different events
MouseEvent = 8
WindowEvent = 9
Implementations§
Source§impl InputType
impl InputType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for InputType
impl Ord for InputType
Source§impl PartialOrd for InputType
impl PartialOrd for InputType
impl Copy for InputType
impl Eq for InputType
impl StructuralPartialEq for InputType
Auto Trait Implementations§
impl Freeze for InputType
impl RefUnwindSafe for InputType
impl Send for InputType
impl Sync for InputType
impl Unpin for InputType
impl UnwindSafe for InputType
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