pub struct RuntimeDiagnosticsSources { /* private fields */ }Expand description
Caller-owned, read-only component sources and a retained shutdown summary.
Each source slot replaces its previous value. Schedule observers select fixed component jobs, and the metadata registry bounds its resource population. Neither observer keeps execution or write authority alive. Keep a clone at the composition root to read the final summary after the endpoint has stopped.
Implementations§
Source§impl RuntimeDiagnosticsSources
impl RuntimeDiagnosticsSources
pub fn set_schedules(&self, observer: ScheduledTaskObserver)
pub fn set_metadata(&self, observer: MetadataIoObserver)
Sourcepub fn retain_shutdown(&self, report: &ShutdownReport)
pub fn retain_shutdown(&self, report: &ShutdownReport)
Retains only local numeric fields; task names, children and details are discarded.
V2 continues to report the supplied report’s local counters. This method does not flatten a subtree or reinterpret wrapper completion as success.
Trait Implementations§
Source§impl Clone for RuntimeDiagnosticsSources
impl Clone for RuntimeDiagnosticsSources
Source§impl Default for RuntimeDiagnosticsSources
impl Default for RuntimeDiagnosticsSources
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeDiagnosticsSources
impl !UnwindSafe for RuntimeDiagnosticsSources
impl Freeze for RuntimeDiagnosticsSources
impl Send for RuntimeDiagnosticsSources
impl Sync for RuntimeDiagnosticsSources
impl Unpin for RuntimeDiagnosticsSources
impl UnsafeUnpin for RuntimeDiagnosticsSources
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