Struct eframe::IntegrationInfo
source · pub struct IntegrationInfo {
pub web_info: WebInfo,
pub system_theme: Option<Theme>,
pub cpu_usage: Option<f32>,
}
Expand description
Information about the integration passed to the use app each frame.
Fields§
§web_info: WebInfo
Information about the surrounding web environment.
system_theme: Option<Theme>
Does the OS use dark or light mode?
None
means “don’t know”.
cpu_usage: Option<f32>
Seconds of cpu usage (in seconds) on the previous frame.
This includes App::update
as well as rendering (except for vsync waiting).
For a more detailed view of cpu usage, use the puffin
profiler together with the puffin
feature of eframe
.
None
if this is the first frame.
Trait Implementations§
source§impl Clone for IntegrationInfo
impl Clone for IntegrationInfo
source§fn clone(&self) -> IntegrationInfo
fn clone(&self) -> IntegrationInfo
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for IntegrationInfo
impl RefUnwindSafe for IntegrationInfo
impl Send for IntegrationInfo
impl Sync for IntegrationInfo
impl Unpin for IntegrationInfo
impl UnwindSafe for IntegrationInfo
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