pub struct TaskFormationOptions<'a> {
pub costs: &'a [u64],
pub max_cost: u64,
pub publish_after: &'a [bool],
}Expand description
Optional cuts that let consumers observe completed work sooner.
Fields§
§costs: &'a [u64]Cost of each indivisible item; required when max_cost is nonzero.
max_cost: u64Maximum accumulated task cost. Zero leaves task size unbounded. An indivisible item larger than the limit remains a single task.
publish_after: &'a [bool]Close a task immediately after these items, before unrelated work joins.
Trait Implementations§
Source§impl<'a> Clone for TaskFormationOptions<'a>
impl<'a> Clone for TaskFormationOptions<'a>
impl<'a> Copy for TaskFormationOptions<'a>
Source§impl<'a> Debug for TaskFormationOptions<'a>
impl<'a> Debug for TaskFormationOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for TaskFormationOptions<'a>
impl<'a> RefUnwindSafe for TaskFormationOptions<'a>
impl<'a> Send for TaskFormationOptions<'a>
impl<'a> Sync for TaskFormationOptions<'a>
impl<'a> Unpin for TaskFormationOptions<'a>
impl<'a> UnsafeUnpin for TaskFormationOptions<'a>
impl<'a> UnwindSafe for TaskFormationOptions<'a>
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