pub struct BackgroundTask<T> { /* private fields */ }Expand description
Non-blocking cross-platform background worker handle committing computed payloads onto the UI thread without stalling frames.
Implementations§
Source§impl<T> BackgroundTask<T>
Non-blocking task spawning and lock-free completion polling for BackgroundTask<T>.
impl<T> BackgroundTask<T>
Non-blocking task spawning and lock-free completion polling for BackgroundTask<T>.
Trait Implementations§
Source§impl<T> Clone for BackgroundTask<T>
Cheap Arc-backed cloning for BackgroundTask<T> regardless of whether T: Clone.
impl<T> Clone for BackgroundTask<T>
Cheap Arc-backed cloning for BackgroundTask<T> regardless of whether T: Clone.
Source§impl<T> Debug for BackgroundTask<T>
impl<T> Debug for BackgroundTask<T>
Auto Trait Implementations§
impl<T> Forget for BackgroundTask<T>
impl<T> Freeze for BackgroundTask<T>
impl<T> Move for BackgroundTask<T>
impl<T> RefUnwindSafe for BackgroundTask<T>
impl<T> Send for BackgroundTask<T>
impl<T> Sync for BackgroundTask<T>
impl<T> Unpin for BackgroundTask<T>
impl<T> UnsafeUnpin for BackgroundTask<T>where
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<Mutex<Option<T>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<T>>>>: UnsafeUnpin,
impl<T> UnwindSafe for BackgroundTask<T>
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