pub struct RenderingStats {
pub encoding_time_ms: f64,
pub rendering_time_ms: f64,
pub frame_count: i64,
pub draw_call_count: i64,
pub total_draw_call_count: i64,
}Expand description
Statistics about the frames that a map renders.
See mln_rendering_stats in the
C API reference.
Fields§
§encoding_time_ms: f64The time that the frame took to encode, in milliseconds.
rendering_time_ms: f64The time that the frame took to render, in milliseconds.
frame_count: i64The frames rendered so far.
draw_call_count: i64The draw calls in the frame.
total_draw_call_count: i64The draw calls in every frame so far.
Trait Implementations§
Source§impl Clone for RenderingStats
impl Clone for RenderingStats
Source§fn clone(&self) -> RenderingStats
fn clone(&self) -> RenderingStats
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 RenderingStats
Source§impl Debug for RenderingStats
impl Debug for RenderingStats
Source§impl Default for RenderingStats
impl Default for RenderingStats
Source§fn default() -> RenderingStats
fn default() -> RenderingStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderingStats
impl PartialEq for RenderingStats
impl StructuralPartialEq for RenderingStats
Auto Trait Implementations§
impl Freeze for RenderingStats
impl RefUnwindSafe for RenderingStats
impl Send for RenderingStats
impl Sync for RenderingStats
impl Unpin for RenderingStats
impl UnsafeUnpin for RenderingStats
impl UnwindSafe for RenderingStats
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