pub struct RemoteTaskBuilder { /* private fields */ }Expand description
Builder for creating remote tasks
Implementations§
Source§impl RemoteTaskBuilder
impl RemoteTaskBuilder
Sourcepub fn new(
id: impl Into<String>,
node_id: impl Into<String>,
agent_id: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, node_id: impl Into<String>, agent_id: impl Into<String>, ) -> Self
Create a new task builder
Sourcepub fn agent_name(self, name: impl Into<String>) -> Self
pub fn agent_name(self, name: impl Into<String>) -> Self
Set agent name
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set task description
Sourcepub fn priority(self, priority: TaskPriority) -> Self
pub fn priority(self, priority: TaskPriority) -> Self
Set task priority
Sourcepub fn total_steps(self, steps: u32) -> Self
pub fn total_steps(self, steps: u32) -> Self
Set total steps
Sourcepub fn build(self) -> RemoteTask
pub fn build(self) -> RemoteTask
Build the task
Auto Trait Implementations§
impl Freeze for RemoteTaskBuilder
impl RefUnwindSafe for RemoteTaskBuilder
impl Send for RemoteTaskBuilder
impl Sync for RemoteTaskBuilder
impl Unpin for RemoteTaskBuilder
impl UnwindSafe for RemoteTaskBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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