pub struct ExecutionReportTask<T> {
pub collection: Pin<Box<dyn Future<Output = ()> + Send>>,
pub result: Pin<Box<dyn Future<Output = Result<T>>>>,
}Expand description
Owned report collection with a core-thread continuation.
Only collection runs on a worker. result receives the collected value and finishes it on
the caller’s thread, allowing cache-dependent decisions without moving a live client or cache.
Fields§
§collection: Pin<Box<dyn Future<Output = ()> + Send>>Worker-safe collection, including decoding and report construction.
result: Pin<Box<dyn Future<Output = Result<T>>>>Core-thread receipt and finalization of the collection.
Implementations§
Source§impl<T: 'static> ExecutionReportTask<T>
impl<T: 'static> ExecutionReportTask<T>
Sourcepub fn new<C, F, M>(collection: F, finish: M) -> Self
pub fn new<C, F, M>(collection: F, finish: M) -> Self
Creates an owned collection and its core-thread continuation.
The collection must not access the live cache. Neither phase may apply execution events. The continuation runs only after the worker terminates; canceled collections never run it.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ExecutionReportTask<T>
impl<T> !Send for ExecutionReportTask<T>
impl<T> !Sync for ExecutionReportTask<T>
impl<T> !UnwindSafe for ExecutionReportTask<T>
impl<T> Freeze for ExecutionReportTask<T>
impl<T> Unpin for ExecutionReportTask<T>
impl<T> UnsafeUnpin for ExecutionReportTask<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