Struct x11rb_protocol::protocol::xproto::ChangePointerControlRequest
source · [−]pub struct ChangePointerControlRequest {
pub acceleration_numerator: i16,
pub acceleration_denominator: i16,
pub threshold: i16,
pub do_acceleration: bool,
pub do_threshold: bool,
}
Fields
acceleration_numerator: i16
acceleration_denominator: i16
threshold: i16
do_acceleration: bool
do_threshold: bool
Implementations
sourceimpl ChangePointerControlRequest
impl ChangePointerControlRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
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
sourceimpl Clone for ChangePointerControlRequest
impl Clone for ChangePointerControlRequest
sourcefn clone(&self) -> ChangePointerControlRequest
fn clone(&self) -> ChangePointerControlRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChangePointerControlRequest
impl Debug for ChangePointerControlRequest
sourceimpl Default for ChangePointerControlRequest
impl Default for ChangePointerControlRequest
sourcefn default() -> ChangePointerControlRequest
fn default() -> ChangePointerControlRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for ChangePointerControlRequest
impl Hash for ChangePointerControlRequest
sourceimpl Ord for ChangePointerControlRequest
impl Ord for ChangePointerControlRequest
sourceimpl PartialEq<ChangePointerControlRequest> for ChangePointerControlRequest
impl PartialEq<ChangePointerControlRequest> for ChangePointerControlRequest
sourcefn eq(&self, other: &ChangePointerControlRequest) -> bool
fn eq(&self, other: &ChangePointerControlRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChangePointerControlRequest) -> bool
fn ne(&self, other: &ChangePointerControlRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ChangePointerControlRequest> for ChangePointerControlRequest
impl PartialOrd<ChangePointerControlRequest> for ChangePointerControlRequest
sourcefn partial_cmp(&self, other: &ChangePointerControlRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &ChangePointerControlRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Request for ChangePointerControlRequest
impl Request for ChangePointerControlRequest
impl Copy for ChangePointerControlRequest
impl Eq for ChangePointerControlRequest
impl StructuralEq for ChangePointerControlRequest
impl StructuralPartialEq for ChangePointerControlRequest
impl VoidRequest for ChangePointerControlRequest
Auto Trait Implementations
impl RefUnwindSafe for ChangePointerControlRequest
impl Send for ChangePointerControlRequest
impl Sync for ChangePointerControlRequest
impl Unpin for ChangePointerControlRequest
impl UnwindSafe for ChangePointerControlRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more