#[non_exhaustive]pub struct Frame<'a> {
pub show: Show<'a>,
pub fullscreen: bool,
pub frame_cap: FrameCap,
pub frame_cap_serial: u32,
pub reload_errors: &'a [String],
}Expand description
One frame for the backend to show (Platform::present).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.show: Show<'a>What it shows.
fullscreen: boolWhether the game should fill the screen (the player’s Fullscreen setting): a windowed backend switches when it changes; a device that is always full screen ignores it.
frame_cap: FrameCapThe most frames a second to show (the player’s frame cap): a
backend that paces its frames paces the next ones to it, and reports
what it applied before the next frame
(App::set_pacing).
frame_cap_serial: u32The serial of the cap’s latest change: the backend reports it with the cap it applied.
reload_errors: &'a [String]The errors of the hot reloads that failed, each with its file and
line (Ctx::reload_errors): a
backend with a debug overlay shows them at the top of the frame. In
a build with debug tools; empty otherwise.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Frame<'a>
impl<'a> !Send for Frame<'a>
impl<'a> !Sync for Frame<'a>
impl<'a> !UnwindSafe for Frame<'a>
impl<'a> Freeze for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnsafeUnpin for Frame<'a>
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