pub struct FeatureLifecycle { /* private fields */ }Expand description
多生产者 / 单消费者事件队列。
不用 Cell<Option<_>>:同一帧关多个功能时后写会覆盖先写,资源就漏停了。
控件回调只持有 Rc<FeatureLifecycle>;App 每帧 drain() 后统一处理。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FeatureLifecycle
impl !RefUnwindSafe for FeatureLifecycle
impl !Sync for FeatureLifecycle
impl Forget for FeatureLifecycle
impl Move for FeatureLifecycle
impl Send for FeatureLifecycle
impl Unpin for FeatureLifecycle
impl UnsafeUnpin for FeatureLifecycle
impl UnwindSafe for FeatureLifecyclewhere
RawVecInner: UnwindSafe,
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