pub struct EventLoop<T: 'static> {
poll: Poll,
waker: Arc<Waker>,
event_processor: EventProcessor<T>,
redraw_receiver: PeekableReceiver<WindowId>,
user_receiver: PeekableReceiver<T>,
user_sender: Sender<T>,
target: Rc<EventLoopWindowTarget<T>>,
}
Fields§
§poll: Poll
§waker: Arc<Waker>
§event_processor: EventProcessor<T>
§redraw_receiver: PeekableReceiver<WindowId>
§user_receiver: PeekableReceiver<T>
§user_sender: Sender<T>
§target: Rc<EventLoopWindowTarget<T>>
Implementations§
source§impl<T: 'static> EventLoop<T>
impl<T: 'static> EventLoop<T>
pub(crate) fn new(xconn: Arc<XConnection>) -> EventLoop<T>
pub fn create_proxy(&self) -> EventLoopProxy<T>
pub(crate) fn window_target(&self) -> &RootELW<T>
pub fn run_return<F>(&mut self, callback: F) -> i32where F: FnMut(Event<'_, T>, &RootELW<T>, &mut ControlFlow),
pub fn run<F>(self, callback: F) -> !where F: 'static + FnMut(Event<'_, T>, &RootELW<T>, &mut ControlFlow),
fn drain_events<F>(&mut self, callback: &mut F, control_flow: &mut ControlFlow)where F: FnMut(Event<'_, T>, &RootELW<T>, &mut ControlFlow),
Auto Trait Implementations§
impl<T> !RefUnwindSafe for EventLoop<T>
impl<T> !Send for EventLoop<T>
impl<T> !Sync for EventLoop<T>
impl<T> Unpin for EventLoop<T>where T: Unpin,
impl<T> !UnwindSafe for EventLoop<T>
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