Struct epi::IntegrationInfo [−][src]
pub struct IntegrationInfo { pub web_info: Option<WebInfo>, pub cpu_usage: Option<f32>, pub seconds_since_midnight: Option<f64>, pub native_pixels_per_point: Option<f32>, }
Information about the integration passed to the use app each frame.
Fields
web_info: Option<WebInfo>
If the app is running in a Web context, this returns information about the environment.
cpu_usage: Option<f32>
Seconds of cpu usage (in seconds) of UI code on the previous frame.
None
if this is the first frame.
seconds_since_midnight: Option<f64>
Local time. Used for the clock in the demo app.
Set to None
if you don’t know.
native_pixels_per_point: Option<f32>
The OS native pixels-per-point
Trait Implementations
impl Clone for IntegrationInfo
[src]
impl Clone for IntegrationInfo
[src]fn clone(&self) -> IntegrationInfo
[src]
fn clone(&self) -> IntegrationInfo
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for IntegrationInfo
impl Send for IntegrationInfo
impl Sync for IntegrationInfo
impl Unpin for IntegrationInfo
impl UnwindSafe for IntegrationInfo
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> AnyMapTrait for T where
T: 'static + Any + Clone + Send + Sync,
[src]
T: 'static + Any + Clone + Send + Sync,