pub struct GlobalReadiness { /* private fields */ }Expand description
Global readiness tracker for the service This struct uses atomic operations to track the readiness status of various components of the service in a thread-safe manner.
Implementations§
Source§impl GlobalReadiness
impl GlobalReadiness
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new GlobalReadiness instance with initial status as Starting
§Returns
A new instance of GlobalReadiness
Sourcepub fn mark_stage(&self, step: SystemStage)
pub fn mark_stage(&self, step: SystemStage)
Sourcepub fn current_stage(&self) -> SystemStage
pub fn current_stage(&self) -> SystemStage
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GlobalReadiness
impl RefUnwindSafe for GlobalReadiness
impl Send for GlobalReadiness
impl Sync for GlobalReadiness
impl Unpin for GlobalReadiness
impl UnsafeUnpin for GlobalReadiness
impl UnwindSafe for GlobalReadiness
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> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request