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