pub struct BackgroundDomainControl { /* private fields */ }Implementations§
Source§impl BackgroundDomainControl
impl BackgroundDomainControl
Sourcepub async fn closed(&self)
pub async fn closed(&self)
Observe domain closure without retaining its external root owner. Subscribe before the state read so a close between the read and await cannot be lost. This wait never mutates admission or exposes a token.
pub fn close(&self, deadline: Instant)
pub fn close_with_policy(&self) -> Result<(), ResourceError>
pub fn is_closed(&self) -> bool
Sourcepub async fn observe_exit_until(
&self,
deadline: Instant,
) -> Result<ShutdownReport, ResourceError>
pub async fn observe_exit_until( &self, deadline: Instant, ) -> Result<ShutdownReport, ResourceError>
Observe actual infrastructure exit using only this caller’s budget. May start the independently owned reaper, but never closes admission, requests cancellation, or changes any domain/job cleanup deadline.
pub async fn shutdown( &self, deadline: Instant, ) -> Result<ShutdownReport, ResourceError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundDomainControl
impl !UnwindSafe for BackgroundDomainControl
impl Forget for BackgroundDomainControl
impl Freeze for BackgroundDomainControl
impl Move for BackgroundDomainControl
impl Send for BackgroundDomainControl
impl Sync for BackgroundDomainControl
impl Unpin for BackgroundDomainControl
impl UnsafeUnpin for BackgroundDomainControl
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
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> ⓘ
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