pub struct EventSource(/* private fields */);Expand description
Source of events from a corresponding window, created by the setup function.
Implementations§
Source§impl EventSource
impl EventSource
Sourcepub fn poll_event(&self) -> Option<WindowEvent>
pub fn poll_event(&self) -> Option<WindowEvent>
Returns the next WindowEvent, if one is available. This should be called in a while let
loop until empty.
Auto Trait Implementations§
impl Freeze for EventSource
impl RefUnwindSafe for EventSource
impl !Send for EventSource
impl !Sync for EventSource
impl Unpin for EventSource
impl UnwindSafe for EventSource
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