pub struct EventLoop { /* private fields */ }
Expand description
Event loop that is used internally.
Implementations§
Source§impl EventLoop
impl EventLoop
Sourcepub fn new() -> (EventLoop, EventLoopHandler)
pub fn new() -> (EventLoop, EventLoopHandler)
Returns a new loop and its handler. The handler should be send to the dedicated Polyhorn thread while the reference-counted loop itself can be shared among all threads.
pub fn queue<F>(&self, task: F) -> Disposable
pub fn queue_retain<F>(&self, task: F)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventLoop
impl !RefUnwindSafe for EventLoop
impl !Send for EventLoop
impl !Sync for EventLoop
impl Unpin for EventLoop
impl !UnwindSafe for EventLoop
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