pub struct EventReader {
pub readers: Vec<Box<dyn InputDevice>>,
pub events: Vec<Event>,
}Fields§
§readers: Vec<Box<dyn InputDevice>>§events: Vec<Event>Implementations§
Source§impl EventReader
impl EventReader
pub fn new() -> Self
pub fn add_reader( &mut self, reader: impl InputDevice + 'static, ) -> Result<(), PixelabError>
pub fn read_all(&mut self) -> Result<(), PixelabError>
pub fn get(&mut self) -> Result<Event, PixelabError>
pub fn send(&mut self, event: Event)
Auto Trait Implementations§
impl !RefUnwindSafe for EventReader
impl !Send for EventReader
impl !Sync for EventReader
impl !UnwindSafe for EventReader
impl Freeze for EventReader
impl Unpin for EventReader
impl UnsafeUnpin for EventReader
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