pub struct LoopPublisher<E: 'static> { /* private fields */ }
Expand description
Event loop publisher wrapper for pushing events into a winit event loop.
Implementations§
Source§impl<E: 'static + Debug> LoopPublisher<E>
impl<E: 'static + Debug> LoopPublisher<E>
Sourcepub fn new(lambda_loop: &Loop<E>) -> Self
pub fn new(lambda_loop: &Loop<E>) -> Self
New LoopPublishers are created from a lambda_loop directly and don’t need
Sourcepub fn publish_event(&self, event: E)
pub fn publish_event(&self, event: E)
Publishes an event into the event loop that created this publisher.
Auto Trait Implementations§
impl<E> Freeze for LoopPublisher<E>
impl<E> RefUnwindSafe for LoopPublisher<E>
impl<E> Send for LoopPublisher<E>where
E: Send,
impl<E> Sync for LoopPublisher<E>where
E: Send,
impl<E> Unpin for LoopPublisher<E>
impl<E> UnwindSafe for LoopPublisher<E>
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