Struct x11rb_protocol::protocol::xkb::SALockDeviceBtn
source · pub struct SALockDeviceBtn {
pub type_: SAType,
pub flags: LockDeviceFlags,
pub button: u8,
pub device: u8,
}
Fields§
§type_: SAType
§flags: LockDeviceFlags
§device: u8
Trait Implementations§
source§impl Clone for SALockDeviceBtn
impl Clone for SALockDeviceBtn
source§fn clone(&self) -> SALockDeviceBtn
fn clone(&self) -> SALockDeviceBtn
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 SALockDeviceBtn
impl Debug for SALockDeviceBtn
source§impl Default for SALockDeviceBtn
impl Default for SALockDeviceBtn
source§fn default() -> SALockDeviceBtn
fn default() -> SALockDeviceBtn
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SALockDeviceBtn
impl<'de> Deserialize<'de> for SALockDeviceBtn
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 From<SALockDeviceBtn> for Action
impl From<SALockDeviceBtn> for Action
source§fn from(lockdevbtn: SALockDeviceBtn) -> Self
fn from(lockdevbtn: SALockDeviceBtn) -> Self
Converts to this type from the input type.
source§impl Hash for SALockDeviceBtn
impl Hash for SALockDeviceBtn
source§impl Ord for SALockDeviceBtn
impl Ord for SALockDeviceBtn
source§fn cmp(&self, other: &SALockDeviceBtn) -> Ordering
fn cmp(&self, other: &SALockDeviceBtn) -> 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 SALockDeviceBtn
impl PartialEq for SALockDeviceBtn
source§fn eq(&self, other: &SALockDeviceBtn) -> bool
fn eq(&self, other: &SALockDeviceBtn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SALockDeviceBtn
impl PartialOrd for SALockDeviceBtn
source§fn partial_cmp(&self, other: &SALockDeviceBtn) -> Option<Ordering>
fn partial_cmp(&self, other: &SALockDeviceBtn) -> 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 SALockDeviceBtn
impl Serialize for SALockDeviceBtn
source§impl Serialize for SALockDeviceBtn
impl Serialize for SALockDeviceBtn
source§impl TryParse for SALockDeviceBtn
impl TryParse for SALockDeviceBtn
impl Copy for SALockDeviceBtn
impl Eq for SALockDeviceBtn
impl StructuralPartialEq for SALockDeviceBtn
Auto Trait Implementations§
impl Freeze for SALockDeviceBtn
impl RefUnwindSafe for SALockDeviceBtn
impl Send for SALockDeviceBtn
impl Sync for SALockDeviceBtn
impl Unpin for SALockDeviceBtn
impl UnwindSafe for SALockDeviceBtn
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
source§impl<T> TryParseFd for Twhere
T: TryParse,
impl<T> TryParseFd for Twhere
T: TryParse,
source§fn try_parse_fd<'a>(
value: &'a [u8],
_: &mut Vec<RawFdContainer>
) -> Result<(T, &'a [u8]), ParseError>
fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<RawFdContainer> ) -> Result<(T, &'a [u8]), ParseError>
Try to parse the given values into an instance of this type. Read more