Enum x11rb_protocol::protocol::xinput::DeviceCtlData
source · pub enum DeviceCtlData {
Resolution(DeviceCtlDataResolution),
AbsCalib(DeviceCtlDataAbsCalib),
Core(DeviceCtlDataCore),
Enable(u8),
AbsArea(DeviceCtlDataAbsArea),
InvalidValue(u16),
}
Variants§
Resolution(DeviceCtlDataResolution)
AbsCalib(DeviceCtlDataAbsCalib)
Core(DeviceCtlDataCore)
Enable(u8)
AbsArea(DeviceCtlDataAbsArea)
InvalidValue(u16)
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 DeviceCtlData
impl DeviceCtlData
source§impl DeviceCtlData
impl DeviceCtlData
pub fn as_resolution(&self) -> Option<&DeviceCtlDataResolution>
pub fn as_abs_calib(&self) -> Option<&DeviceCtlDataAbsCalib>
pub fn as_core(&self) -> Option<&DeviceCtlDataCore>
pub fn as_enable(&self) -> Option<&u8>
pub fn as_abs_area(&self) -> Option<&DeviceCtlDataAbsArea>
source§impl DeviceCtlData
impl DeviceCtlData
source§impl DeviceCtlData
impl DeviceCtlData
fn switch_expr(&self) -> u16
Trait Implementations§
source§impl Clone for DeviceCtlData
impl Clone for DeviceCtlData
source§fn clone(&self) -> DeviceCtlData
fn clone(&self) -> DeviceCtlData
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 DeviceCtlData
impl RefUnwindSafe for DeviceCtlData
impl Send for DeviceCtlData
impl Sync for DeviceCtlData
impl Unpin for DeviceCtlData
impl UnwindSafe for DeviceCtlData
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