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
source§impl InputInfoInfo
impl InputInfoInfo
pub fn as_key(&self) -> Option<&InputInfoInfoKey>
pub fn as_valuator(&self) -> Option<&InputInfoInfoValuator>
source§impl InputInfoInfo
impl InputInfoInfo
source§impl InputInfoInfo
impl InputInfoInfo
fn switch_expr(&self) -> u8
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 moreAuto 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