pub struct UtilityRuntime { /* private fields */ }Expand description
Runtime-owned isolated execution and provider cleanup.
Implementations§
Source§impl UtilityRuntime
impl UtilityRuntime
Sourcepub async fn submit_cancellable(
&self,
request: OneShotRequest,
cancellation: CancellationToken,
) -> Result<OneShotSubmission, OneShotError>
pub async fn submit_cancellable( &self, request: OneShotRequest, cancellation: CancellationToken, ) -> Result<OneShotSubmission, OneShotError>
Runs one worker-admitted utility request and awaits cancellation cleanup.
§Errors
Returns the provider failure or cancellation diagnostic.
Sourcepub fn force_shutdown(&self)
pub fn force_shutdown(&self)
Escalates cleanup after the worker’s graceful shutdown deadline.
Auto Trait Implementations§
impl !RefUnwindSafe for UtilityRuntime
impl !UnwindSafe for UtilityRuntime
impl Forget for UtilityRuntime
impl Freeze for UtilityRuntime
impl Move for UtilityRuntime
impl Send for UtilityRuntime
impl Sync for UtilityRuntime
impl Unpin for UtilityRuntime
impl UnsafeUnpin for UtilityRuntime
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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