pub struct HidMouse {
port: usize,
slot_id: u8,
interface: u8,
endpoint: u8,
max_packet: u16,
interval: u8,
event_queue: Vec<MouseEvent>,
last_buttons: u8,
report_buf: *mut u8,
}Fields§
§port: usize§slot_id: u8§interface: u8§endpoint: u8§max_packet: u16§interval: u8§event_queue: Vec<MouseEvent>§report_buf: *mut u8Implementations§
Source§impl HidMouse
impl HidMouse
pub fn new( port: usize, slot_id: u8, interface: u8, endpoint: u8, max_packet: u16, interval: u8, ) -> Self
pub fn read_event(&mut self) -> Option<MouseEvent>
pub fn process_report(&mut self, report: &[u8])
pub fn drain_into_unified(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HidMouse
impl RefUnwindSafe for HidMouse
impl Unpin for HidMouse
impl UnsafeUnpin for HidMouse
impl UnwindSafe for HidMouse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more