Enum x11rb::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 moreAuto Trait Implementations§
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