pub struct DiagnosticsBus { /* private fields */ }Expand description
Fan-out bus connecting one diagnostics source to many sinks.
Implementations§
Source§impl DiagnosticsBus
impl DiagnosticsBus
Sourcepub fn attach(&self, sink: Arc<dyn DiagnosticsSink>) -> usize
pub fn attach(&self, sink: Arc<dyn DiagnosticsSink>) -> usize
Attach a sink. Returns the new sink count.
Sourcepub async fn publish(&self, batch: DiagnosticsBatch)
pub async fn publish(&self, batch: DiagnosticsBatch)
Publish a batch to every attached sink concurrently.
Trait Implementations§
Source§impl Clone for DiagnosticsBus
impl Clone for DiagnosticsBus
Source§fn clone(&self) -> DiagnosticsBus
fn clone(&self) -> DiagnosticsBus
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 DiagnosticsBus
impl Debug for DiagnosticsBus
Source§impl Default for DiagnosticsBus
impl Default for DiagnosticsBus
Source§fn default() -> DiagnosticsBus
fn default() -> DiagnosticsBus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiagnosticsBus
impl RefUnwindSafe for DiagnosticsBus
impl Send for DiagnosticsBus
impl Sync for DiagnosticsBus
impl Unpin for DiagnosticsBus
impl UnsafeUnpin for DiagnosticsBus
impl UnwindSafe for DiagnosticsBus
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