pub struct RuntimeDiagnostics { /* private fields */ }Expand description
An opt-in Runtime Diagnostics port.
The port only stores local, ephemeral, best-effort records. It never calls observer code and never waits for a consumer. It is therefore unsuitable for audit, durable Story correctness, persistence, replay, or redelivery.
Implementations§
Source§impl RuntimeDiagnostics
impl RuntimeDiagnostics
Sourcepub fn subscribe(
&self,
filter: DiagnosticFilter,
capacity: usize,
) -> Result<DiagnosticObserver, DiagnosticSubscribeError>
pub fn subscribe( &self, filter: DiagnosticFilter, capacity: usize, ) -> Result<DiagnosticObserver, DiagnosticSubscribeError>
Adds an independently bounded, source-filtered observer queue.
Sourcepub fn subscribe_all(
&self,
capacity: usize,
) -> Result<DiagnosticObserver, DiagnosticSubscribeError>
pub fn subscribe_all( &self, capacity: usize, ) -> Result<DiagnosticObserver, DiagnosticSubscribeError>
Adds an all-source observer queue.
Sourcepub fn observer_count(&self) -> usize
pub fn observer_count(&self) -> usize
Returns the number of observers that are still connected to this port.
Trait Implementations§
Source§impl Clone for RuntimeDiagnostics
impl Clone for RuntimeDiagnostics
Source§fn clone(&self) -> RuntimeDiagnostics
fn clone(&self) -> RuntimeDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeDiagnostics
impl Debug for RuntimeDiagnostics
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeDiagnostics
impl !Send for RuntimeDiagnostics
impl !Sync for RuntimeDiagnostics
impl !UnwindSafe for RuntimeDiagnostics
impl Freeze for RuntimeDiagnostics
impl Unpin for RuntimeDiagnostics
impl UnsafeUnpin for RuntimeDiagnostics
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