pub struct TaskletStep { /* private fields */ }Expand description
A validated one-step tasklet definition.
Implementations§
Source§impl TaskletStep
impl TaskletStep
Sourcepub fn new(name: StepName, tasklet: Arc<dyn Tasklet>) -> Self
pub fn new(name: StepName, tasklet: Arc<dyn Tasklet>) -> Self
Constructs a step from its validated name and async body.
Sourcepub fn with_listener(self, listener: Arc<dyn StepExecutionListener>) -> Self
pub fn with_listener(self, listener: Arc<dyn StepExecutionListener>) -> Self
Registers a step listener in deterministic before-order.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskletStep
impl !UnwindSafe for TaskletStep
impl Freeze for TaskletStep
impl Send for TaskletStep
impl Sync for TaskletStep
impl Unpin for TaskletStep
impl UnsafeUnpin for TaskletStep
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