pub struct RenderSessionSnapshot {
pub state: RenderSessionState,
pub extent: LogicalExtent,
pub generation: u64,
pub frame_generation: u64,
pub acquired_frame_count: u32,
pub failure_status: Status,
pub has_target: bool,
}Expand description
The state of a render session at one moment.
See mln_render_session_snapshot in the
C API reference.
Fields§
§state: RenderSessionState§extent: LogicalExtentThe target’s logical size, and the map’s scale factor.
generation: u64§frame_generation: u64§acquired_frame_count: u32§failure_status: StatusStatus::Ok until the session fails. Then Status::TargetLost when it
failed because it lost its target, or Status::NativeError when it
failed for another reason.
has_target: boolWhether the session is attached and has a target to render to. It’s
false from when RenderSessionHandle::release_target() completes until
you give the session a new target.
Trait Implementations§
Source§impl Clone for RenderSessionSnapshot
impl Clone for RenderSessionSnapshot
Source§fn clone(&self) -> RenderSessionSnapshot
fn clone(&self) -> RenderSessionSnapshot
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 RenderSessionSnapshot
Source§impl Debug for RenderSessionSnapshot
impl Debug for RenderSessionSnapshot
Source§impl PartialEq for RenderSessionSnapshot
impl PartialEq for RenderSessionSnapshot
impl StructuralPartialEq for RenderSessionSnapshot
Auto Trait Implementations§
impl Freeze for RenderSessionSnapshot
impl RefUnwindSafe for RenderSessionSnapshot
impl Send for RenderSessionSnapshot
impl Sync for RenderSessionSnapshot
impl Unpin for RenderSessionSnapshot
impl UnsafeUnpin for RenderSessionSnapshot
impl UnwindSafe for RenderSessionSnapshot
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