Enum x11rb_protocol::protocol::xinput::InputInfoInfo
source · pub enum InputInfoInfo {
Key(InputInfoInfoKey),
Button(InputInfoInfoButton),
Valuator(InputInfoInfoValuator),
InvalidValue(u8),
}
Variants§
Key(InputInfoInfoKey)
Button(InputInfoInfoButton)
Valuator(InputInfoInfoValuator)
InvalidValue(u8)
This variant is returned when the server sends a discriminant value that does not match any of the defined by the protocol.
Usually, this should be considered a parsing error, but there are some cases where the server violates the protocol.
Trying to use serialize
or serialize_into
with this variant
will raise a panic.
Implementations§
source§impl InputInfoInfo
impl InputInfoInfo
pub fn as_key(&self) -> Option<&InputInfoInfoKey>
pub fn as_valuator(&self) -> Option<&InputInfoInfoValuator>
Trait Implementations§
source§impl Clone for InputInfoInfo
impl Clone for InputInfoInfo
source§fn clone(&self) -> InputInfoInfo
fn clone(&self) -> InputInfoInfo
Returns a copy 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 Debug for InputInfoInfo
impl Debug for InputInfoInfo
source§impl<'de> Deserialize<'de> for InputInfoInfo
impl<'de> Deserialize<'de> for InputInfoInfo
source§fn 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
source§impl Hash for InputInfoInfo
impl Hash for InputInfoInfo
source§impl Ord for InputInfoInfo
impl Ord for InputInfoInfo
source§fn cmp(&self, other: &InputInfoInfo) -> Ordering
fn cmp(&self, other: &InputInfoInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InputInfoInfo
impl PartialEq for InputInfoInfo
source§fn eq(&self, other: &InputInfoInfo) -> bool
fn eq(&self, other: &InputInfoInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputInfoInfo
impl PartialOrd for InputInfoInfo
source§fn partial_cmp(&self, other: &InputInfoInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &InputInfoInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for InputInfoInfo
impl Serialize for InputInfoInfo
impl Eq for InputInfoInfo
impl StructuralPartialEq for InputInfoInfo
Auto Trait Implementations§
impl Freeze for InputInfoInfo
impl RefUnwindSafe for InputInfoInfo
impl Send for InputInfoInfo
impl Sync for InputInfoInfo
impl Unpin for InputInfoInfo
impl UnwindSafe for InputInfoInfo
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