pub struct BlockingTaskletContext { /* private fields */ }Expand description
Owned execution data supplied to an isolated blocking tasklet.
Implementations§
Source§impl BlockingTaskletContext
impl BlockingTaskletContext
Sourcepub const fn parameters(&self) -> &JobParameters
pub const fn parameters(&self) -> &JobParameters
Borrows the launch parameters.
Sourcepub const fn job_execution_id(&self) -> JobExecutionId
pub const fn job_execution_id(&self) -> JobExecutionId
Returns the enclosing job-attempt identifier.
Sourcepub const fn step_execution_id(&self) -> StepExecutionId
pub const fn step_execution_id(&self) -> StepExecutionId
Returns this step-attempt identifier.
Sourcepub const fn stop_token(&self) -> &StopToken
pub const fn stop_token(&self) -> &StopToken
Borrows the cooperative stop token.
Blocking code cannot be interrupted after it starts. This token is useful only for application-specific polling inside the synchronous body; the adapter still awaits the body before returning.
Trait Implementations§
Source§impl Clone for BlockingTaskletContext
impl Clone for BlockingTaskletContext
Source§fn clone(&self) -> BlockingTaskletContext
fn clone(&self) -> BlockingTaskletContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockingTaskletContext
impl RefUnwindSafe for BlockingTaskletContext
impl Send for BlockingTaskletContext
impl Sync for BlockingTaskletContext
impl Unpin for BlockingTaskletContext
impl UnsafeUnpin for BlockingTaskletContext
impl UnwindSafe for BlockingTaskletContext
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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