pub struct AsyncLoopReport {
pub steps: u32,
pub idle_waits: u32,
pub last_control_flow: Option<PlatformControlFlow>,
}Expand description
run_async_event_loop 退出时返回的运行统计报告。
Fields§
§steps: u32累计执行的 step_platform_async 步数。
idle_waits: u32累计进入 PlatformControlFlow::Wait 空闲休眠(或空闲退出)的次数。
last_control_flow: Option<PlatformControlFlow>循环退出前最后一次返回的控制流状态。
Trait Implementations§
Source§impl Clone for AsyncLoopReport
impl Clone for AsyncLoopReport
impl Copy for AsyncLoopReport
Source§impl Debug for AsyncLoopReport
impl Debug for AsyncLoopReport
Source§impl Default for AsyncLoopReport
impl Default for AsyncLoopReport
impl Eq for AsyncLoopReport
Source§impl PartialEq for AsyncLoopReport
impl PartialEq for AsyncLoopReport
impl StructuralPartialEq for AsyncLoopReport
Auto Trait Implementations§
impl Forget for AsyncLoopReport
impl Freeze for AsyncLoopReport
impl Move for AsyncLoopReport
impl RefUnwindSafe for AsyncLoopReport
impl Send for AsyncLoopReport
impl Sync for AsyncLoopReport
impl Unpin for AsyncLoopReport
impl UnsafeUnpin for AsyncLoopReport
impl UnwindSafe for AsyncLoopReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。