pub struct FrameStats {
pub had_work: bool,
pub need_layout: bool,
pub presented: bool,
pub close_requested: bool,
}Expand description
一帧的观测结果。
Fields§
§had_work: bool本帧是否有事件或布局工作。
need_layout: bool本帧是否重新布局。
presented: bool本帧是否真正上屏。
close_requested: bool事件里出现了 RawEvent::Close(桌面关窗)。
Auto Trait Implementations§
impl Forget for FrameStats
impl Freeze for FrameStats
impl Move for FrameStats
impl RefUnwindSafe for FrameStats
impl Send for FrameStats
impl Sync for FrameStats
impl Unpin for FrameStats
impl UnsafeUnpin for FrameStats
impl UnwindSafe for FrameStats
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