Enum x11rb_protocol::protocol::xinput::FeedbackCtlData
source · pub enum FeedbackCtlData {
Keyboard(FeedbackCtlDataKeyboard),
Pointer(FeedbackCtlDataPointer),
String(FeedbackCtlDataString),
Integer(FeedbackCtlDataInteger),
Led(FeedbackCtlDataLed),
Bell(FeedbackCtlDataBell),
InvalidValue(u8),
}
Variants§
Keyboard(FeedbackCtlDataKeyboard)
Pointer(FeedbackCtlDataPointer)
String(FeedbackCtlDataString)
Integer(FeedbackCtlDataInteger)
Led(FeedbackCtlDataLed)
Bell(FeedbackCtlDataBell)
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 FeedbackCtlData
impl FeedbackCtlData
pub fn as_keyboard(&self) -> Option<&FeedbackCtlDataKeyboard>
pub fn as_pointer(&self) -> Option<&FeedbackCtlDataPointer>
pub fn as_string(&self) -> Option<&FeedbackCtlDataString>
pub fn as_integer(&self) -> Option<&FeedbackCtlDataInteger>
pub fn as_led(&self) -> Option<&FeedbackCtlDataLed>
pub fn as_bell(&self) -> Option<&FeedbackCtlDataBell>
Trait Implementations§
source§impl Clone for FeedbackCtlData
impl Clone for FeedbackCtlData
source§fn clone(&self) -> FeedbackCtlData
fn clone(&self) -> FeedbackCtlData
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 FeedbackCtlData
impl Debug for FeedbackCtlData
source§impl<'de> Deserialize<'de> for FeedbackCtlData
impl<'de> Deserialize<'de> for FeedbackCtlData
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 FeedbackCtlData
impl Hash for FeedbackCtlData
source§impl Ord for FeedbackCtlData
impl Ord for FeedbackCtlData
source§fn cmp(&self, other: &FeedbackCtlData) -> Ordering
fn cmp(&self, other: &FeedbackCtlData) -> 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 FeedbackCtlData
impl PartialEq for FeedbackCtlData
source§fn eq(&self, other: &FeedbackCtlData) -> bool
fn eq(&self, other: &FeedbackCtlData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FeedbackCtlData
impl PartialOrd for FeedbackCtlData
source§fn partial_cmp(&self, other: &FeedbackCtlData) -> Option<Ordering>
fn partial_cmp(&self, other: &FeedbackCtlData) -> 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 FeedbackCtlData
impl Serialize for FeedbackCtlData
impl Eq for FeedbackCtlData
impl StructuralPartialEq for FeedbackCtlData
Auto Trait Implementations§
impl Freeze for FeedbackCtlData
impl RefUnwindSafe for FeedbackCtlData
impl Send for FeedbackCtlData
impl Sync for FeedbackCtlData
impl Unpin for FeedbackCtlData
impl UnwindSafe for FeedbackCtlData
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