#[non_exhaustive]pub struct RenderUpdate {
pub result: RenderResult,
pub needs_repaint: bool,
}Expand description
Outcome of a successful RenderSessionHandle::render_update call.
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.result: RenderResultWhich outcome the call reached; see RenderResult for the wake each
variant names.
needs_repaint: boolWhether the map asked for another frame while it rendered this one, as
during an ongoing camera transition. Set only when result is
RenderResult::Rendered; false for every other outcome. This is the
same signal the render-frame-finished event carries, delivered here
without the event round trip, so a host can re-arm its frame loop
before it drains events.
Trait Implementations§
Source§impl Clone for RenderUpdate
impl Clone for RenderUpdate
Source§fn clone(&self) -> RenderUpdate
fn clone(&self) -> RenderUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderUpdate
impl Debug for RenderUpdate
Source§impl Hash for RenderUpdate
impl Hash for RenderUpdate
Source§impl PartialEq for RenderUpdate
impl PartialEq for RenderUpdate
impl Copy for RenderUpdate
impl Eq for RenderUpdate
impl StructuralPartialEq for RenderUpdate
Auto Trait Implementations§
impl Freeze for RenderUpdate
impl RefUnwindSafe for RenderUpdate
impl Send for RenderUpdate
impl Sync for RenderUpdate
impl Unpin for RenderUpdate
impl UnsafeUnpin for RenderUpdate
impl UnwindSafe for RenderUpdate
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