pub struct Health { /* private fields */ }
Expand description
A handle for updating the health of a component.
Implementations§
Source§impl Health
impl Health
Sourcepub fn mark_ready(&mut self)
pub fn mark_ready(&mut self)
Marks the component as ready.
Sourcepub fn mark_not_ready(&mut self)
pub fn mark_not_ready(&mut self)
Marks the component as not ready.
Auto Trait Implementations§
impl Freeze for Health
impl !RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl !UnwindSafe for Health
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>
§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked
wrapper. Read more