pub struct DebugRegistry { /* private fields */ }
Expand description
Registry for managing debug trace providers
Implementations§
Source§impl DebugRegistry
impl DebugRegistry
Sourcepub fn register(&self, provider: Arc<dyn DebugTrace>)
pub fn register(&self, provider: Arc<dyn DebugTrace>)
Register a debug provider
Sourcepub fn unregister(&self, name: &str)
pub fn unregister(&self, name: &str)
Unregister a debug provider by name
Sourcepub fn collect_debug_sections(&self) -> Vec<DebugSection>
pub fn collect_debug_sections(&self) -> Vec<DebugSection>
Get all debug sections from active providers
Sourcepub fn generate_debug_report(&self) -> String
pub fn generate_debug_report(&self) -> String
Generate a complete debug report
Sourcepub fn list_providers(&self) -> Vec<String>
pub fn list_providers(&self) -> Vec<String>
Get a list of registered provider names
Sourcepub fn collect_summaries(&self) -> Vec<(String, String)>
pub fn collect_summaries(&self) -> Vec<(String, String)>
Get debug summaries from all active providers
Sourcepub fn has_provider(&self, name: &str) -> bool
pub fn has_provider(&self, name: &str) -> bool
Check if a provider is registered
Sourcepub fn provider_count(&self) -> usize
pub fn provider_count(&self) -> usize
Get the count of registered providers
Trait Implementations§
Source§impl Clone for DebugRegistry
impl Clone for DebugRegistry
Auto Trait Implementations§
impl Freeze for DebugRegistry
impl RefUnwindSafe for DebugRegistry
impl Send for DebugRegistry
impl Sync for DebugRegistry
impl Unpin for DebugRegistry
impl UnwindSafe for DebugRegistry
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> 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