Struct lambda_platform::winit::LoopPublisher
source · 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.