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