pub enum RenderResult {
Rendered,
NoUpdate,
TargetNotReady,
Superseded,
Failed,
Unknown(u32),
}Expand description
How a frame demand finished.
See mln_render_result in the
C API reference.
Variants§
Rendered
NoUpdate
The map had nothing new to draw.
TargetNotReady
The target couldn’t take a frame, such as while a window is hidden or
destroyed, or after RenderSessionHandle::release_target(). Demand a
frame again later.
Superseded
A later demand with the same flags replaced this one.
Failed
The session failed, and RenderSessionHandle::get_failure() reports
why. Once RenderSessionHandle::release() completes, you can attach a
new session.
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for RenderResult
impl Clone for RenderResult
Source§fn clone(&self) -> RenderResult
fn clone(&self) -> RenderResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderResult
Source§impl Debug for RenderResult
impl Debug for RenderResult
Source§impl Default for RenderResult
impl Default for RenderResult
impl Eq for RenderResult
Source§impl Hash for RenderResult
impl Hash for RenderResult
Source§impl PartialEq for RenderResult
impl PartialEq for RenderResult
impl StructuralPartialEq for RenderResult
Auto Trait Implementations§
impl Freeze for RenderResult
impl RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl UnsafeUnpin for RenderResult
impl UnwindSafe for RenderResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more