pub struct FanOutDiagnostics { /* private fields */ }Expand description
A sink that hands each event to every sink it holds that wants its kind, in order.
Implementations§
Source§impl FanOutDiagnostics
impl FanOutDiagnostics
Sourcepub fn new(sinks: Vec<Arc<dyn DiagnosticSink>>) -> FanOutDiagnostics
pub fn new(sinks: Vec<Arc<dyn DiagnosticSink>>) -> FanOutDiagnostics
A fan-out to sinks, in order.
Trait Implementations§
Source§impl Clone for FanOutDiagnostics
impl Clone for FanOutDiagnostics
Source§fn clone(&self) -> FanOutDiagnostics
fn clone(&self) -> FanOutDiagnostics
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 FanOutDiagnostics
impl Debug for FanOutDiagnostics
Source§impl Default for FanOutDiagnostics
impl Default for FanOutDiagnostics
Source§fn default() -> FanOutDiagnostics
fn default() -> FanOutDiagnostics
Returns the “default value” for a type. Read more
Source§impl DiagnosticSink for FanOutDiagnostics
impl DiagnosticSink for FanOutDiagnostics
Source§fn wants(&self, kind: DiagnosticKind) -> bool
fn wants(&self, kind: DiagnosticKind) -> bool
Whether the sink wants events of
kind. Asked before each event is built, so answering
false costs the core a branch and nothing more.Source§fn report(&self, event: &Diagnostic<'_>)
fn report(&self, event: &Diagnostic<'_>)
Auto Trait Implementations§
impl !RefUnwindSafe for FanOutDiagnostics
impl !UnwindSafe for FanOutDiagnostics
impl Freeze for FanOutDiagnostics
impl Send for FanOutDiagnostics
impl Sync for FanOutDiagnostics
impl Unpin for FanOutDiagnostics
impl UnsafeUnpin for FanOutDiagnostics
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