#[non_exhaustive]pub struct ShutdownCompletion { /* private fields */ }Expand description
Observes managed-runtime completion without retaining the client or owner.
Obtain this value from crate::Client::shutdown_completion before releasing
the client. Clones and repeated waits observe the same shutdown outcome.
wasm targets have no managed runtime, so no value of this type exists there.
Implementations§
Source§impl ShutdownCompletion
impl ShutdownCompletion
Sourcepub async fn wait(&self) -> Result<(), ShutdownError>
pub async fn wait(&self) -> Result<(), ShutdownError>
Waits for all managed runtime threads to be joined after owner release.
Waiting does not request shutdown or cancel transfers. Release client clones and transfer ownership first; active work and delayed scheduler reclamation can retain the owner. Success includes runtime destruction and managed-thread local cleanup, but not destruction of independently retained HTTP clients or SDK configuration.
Running blocking work must finish; indefinitely blocked or non-yielding work can prevent completion. No ambient Tokio runtime is required. Dropping this future does not stop joining that has already started.
§Errors
Rejects waiting from this managed runtime’s own threads. Also reports joiner startup failure, lost completion, and managed-thread panics.
Trait Implementations§
Source§impl Clone for ShutdownCompletion
impl Clone for ShutdownCompletion
Auto Trait Implementations§
impl Forget for ShutdownCompletion
impl Freeze for ShutdownCompletion
impl Move for ShutdownCompletion
impl RefUnwindSafe for ShutdownCompletion
impl Send for ShutdownCompletion
impl Sync for ShutdownCompletion
impl Unpin for ShutdownCompletion
impl UnsafeUnpin for ShutdownCompletion
impl UnwindSafe for ShutdownCompletion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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