pub struct WindowResource<W: WindowProvider> {
pub handle: W::Handle,
pub exposed: W::Exposed,
}Expand description
Resource inserted by WindowPlugin
that gives systems access to the window handle and the exposed value.
Fields§
§handle: W::HandleThe raw window handle, used for surface creation and size queries.
exposed: W::ExposedThe platform-specific exposed value (e.g. Arc<winit::window::Window>).
Auto Trait Implementations§
impl<W> Freeze for WindowResource<W>
impl<W> RefUnwindSafe for WindowResource<W>
impl<W> Send for WindowResource<W>
impl<W> Sync for WindowResource<W>
impl<W> Unpin for WindowResource<W>
impl<W> UnsafeUnpin for WindowResource<W>
impl<W> UnwindSafe for WindowResource<W>
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