pub struct EventLoop<P> where
P: SharedPointerKind, {
pub device: Shared<Device<P>, P>,
pub window: Window,
/* private fields */
}Fields
device: Shared<Device<P>, P>window: WindowImplementations
sourceimpl<P> EventLoop<P> where
P: SharedPointerKind,
impl<P> EventLoop<P> where
P: SharedPointerKind,
pub fn new() -> EventLoopBuilder<P>
pub fn resolution(&self) -> UVec2
pub fn run<FrameFn>(self, frame_fn: FrameFn) -> Result<(), DisplayError> where
FrameFn: FnMut(FrameContext<'_, P>),
P: 'static,
Trait Implementations
Auto Trait Implementations
impl<P> !RefUnwindSafe for EventLoop<P>
impl<P> !Send for EventLoop<P>
impl<P> !Sync for EventLoop<P>
impl<P> Unpin for EventLoop<P> where
P: Unpin,
impl<P> !UnwindSafe for EventLoop<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more