Struct x11rb_protocol::protocol::xinput::DeviceBellRequest
source · pub struct DeviceBellRequest {
pub device_id: u8,
pub feedback_id: u8,
pub feedback_class: u8,
pub percent: i8,
}
Fields§
§device_id: u8
§feedback_id: u8
§feedback_class: u8
§percent: i8
Implementations§
source§impl DeviceBellRequest
impl DeviceBellRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for DeviceBellRequest
impl Clone for DeviceBellRequest
source§fn clone(&self) -> DeviceBellRequest
fn clone(&self) -> DeviceBellRequest
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 DeviceBellRequest
impl Debug for DeviceBellRequest
source§impl Default for DeviceBellRequest
impl Default for DeviceBellRequest
source§fn default() -> DeviceBellRequest
fn default() -> DeviceBellRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceBellRequest
impl<'de> Deserialize<'de> for DeviceBellRequest
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 DeviceBellRequest
impl Hash for DeviceBellRequest
source§impl Ord for DeviceBellRequest
impl Ord for DeviceBellRequest
source§fn cmp(&self, other: &DeviceBellRequest) -> Ordering
fn cmp(&self, other: &DeviceBellRequest) -> 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 DeviceBellRequest
impl PartialEq for DeviceBellRequest
source§fn eq(&self, other: &DeviceBellRequest) -> bool
fn eq(&self, other: &DeviceBellRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DeviceBellRequest
impl PartialOrd for DeviceBellRequest
source§fn partial_cmp(&self, other: &DeviceBellRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &DeviceBellRequest) -> 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 Request for DeviceBellRequest
impl Request for DeviceBellRequest
source§impl Serialize for DeviceBellRequest
impl Serialize for DeviceBellRequest
impl Copy for DeviceBellRequest
impl Eq for DeviceBellRequest
impl StructuralPartialEq for DeviceBellRequest
impl VoidRequest for DeviceBellRequest
Auto Trait Implementations§
impl Freeze for DeviceBellRequest
impl RefUnwindSafe for DeviceBellRequest
impl Send for DeviceBellRequest
impl Sync for DeviceBellRequest
impl Unpin for DeviceBellRequest
impl UnwindSafe for DeviceBellRequest
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