pub struct LoadSlot<T: 'static> { /* private fields */ }Expand description
单槽异步加载:同一时刻只有一个在飞的任务,新请求取消旧请求。
T: 'static 是 Signal 的要求(状态要能被任务回调跨帧持有)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for LoadSlot<T>
impl<T> !Send for LoadSlot<T>
impl<T> !Sync for LoadSlot<T>
impl<T> !UnwindSafe for LoadSlot<T>
impl<T> Forget for LoadSlot<T>
impl<T> Freeze for LoadSlot<T>where
*const RcInner<RefCell<SignalInner<LoadState<T>>>> is !null: Freeze,
PhantomData<RcInner<RefCell<SignalInner<LoadState<T>>>>>: Freeze,
*const RcInner<RefCell<Option<TaskHandle>>> is !null: Freeze,
PhantomData<RcInner<RefCell<Option<TaskHandle>>>>: Freeze,
impl<T> Move for LoadSlot<T>
impl<T> Unpin for LoadSlot<T>
impl<T> UnsafeUnpin for LoadSlot<T>where
*const RcInner<RefCell<SignalInner<LoadState<T>>>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<SignalInner<LoadState<T>>>>>: UnsafeUnpin,
*const RcInner<RefCell<Option<TaskHandle>>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<Option<TaskHandle>>>>: UnsafeUnpin,
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