pub struct TaskBuilder { /* private fields */ }Expand description
Task builder for convenient task creation
Implementations§
Source§impl TaskBuilder
impl TaskBuilder
Sourcepub fn priority(self, priority: TaskPriority) -> Self
pub fn priority(self, priority: TaskPriority) -> Self
Set task priority
Sourcepub fn requirements(self, requirements: TaskRequirements) -> Self
pub fn requirements(self, requirements: TaskRequirements) -> Self
Set task requirements
Sourcepub fn constraints(self, constraints: TaskConstraints) -> Self
pub fn constraints(self, constraints: TaskConstraints) -> Self
Set task constraints
Sourcepub fn metadata(self, metadata: TaskMetadata) -> Self
pub fn metadata(self, metadata: TaskMetadata) -> Self
Set task metadata
Sourcepub fn execution_fn(self, func: TaskExecutionFunction) -> Self
pub fn execution_fn(self, func: TaskExecutionFunction) -> Self
Set execution function
Sourcepub fn build(self) -> ExecutionTask
pub fn build(self) -> ExecutionTask
Build the task
Trait Implementations§
Source§impl Debug for TaskBuilder
impl Debug for TaskBuilder
Auto Trait Implementations§
impl Freeze for TaskBuilder
impl !RefUnwindSafe for TaskBuilder
impl Send for TaskBuilder
impl Sync for TaskBuilder
impl Unpin for TaskBuilder
impl !UnwindSafe for TaskBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more