Struct virtio_drivers::device::input::AbsInfo
source · #[repr(C)]pub struct AbsInfo {
pub min: u32,
pub max: u32,
pub fuzz: u32,
pub flat: u32,
pub res: u32,
}Expand description
Information about an axis of an input device, typically a joystick.
Fields§
§min: u32The minimum value for the axis.
max: u32The maximum value for the axis.
fuzz: u32The fuzz value used to filter noise from the event stream.
flat: u32The size of the dead zone; values less than this will be reported as 0.
res: u32The resolution for values reported for the axis.
Trait Implementations§
source§impl AsBytes for AbsInfo
impl AsBytes for AbsInfo
source§impl FromBytes for AbsInfo
impl FromBytes for AbsInfo
source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes as a &[Self] with length
equal to count without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes as a &[Self] with length
equal to count without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moresource§impl FromZeroes for AbsInfowhere
u32: FromZeroes,
impl FromZeroes for AbsInfowhere
u32: FromZeroes,
source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read moresource§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moresource§impl PartialEq for AbsInfo
impl PartialEq for AbsInfo
impl Eq for AbsInfo
impl StructuralPartialEq for AbsInfo
Auto Trait Implementations§
impl Freeze for AbsInfo
impl RefUnwindSafe for AbsInfo
impl Send for AbsInfo
impl Sync for AbsInfo
impl Unpin for AbsInfo
impl UnwindSafe for AbsInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)