pub struct FanOutLoggingPlugin { /* private fields */ }Expand description
Fan-Out-Adapter — broadcast ein Event an alle eingetragenen
Backends. Nuetzlich fuer Setup mit stderr + audit-JSON-File
parallel.
Implementations§
Source§impl FanOutLoggingPlugin
impl FanOutLoggingPlugin
Sourcepub fn with<P: LoggingPlugin + 'static>(self, sink: P) -> Self
pub fn with<P: LoggingPlugin + 'static>(self, sink: P) -> Self
Backend hinzufuegen. Builder-Style.
Sourcepub fn with_boxed(self, sink: Box<dyn LoggingPlugin>) -> Self
pub fn with_boxed(self, sink: Box<dyn LoggingPlugin>) -> Self
Backend hinzufuegen per Box<dyn ...> (wenn Nutzer schon einen
Box-Sink hat).
Sourcepub fn sink_count(&self) -> usize
pub fn sink_count(&self) -> usize
Anzahl registrierter Backends.
Trait Implementations§
Source§impl Default for FanOutLoggingPlugin
impl Default for FanOutLoggingPlugin
Source§impl LoggingPlugin for FanOutLoggingPlugin
impl LoggingPlugin for FanOutLoggingPlugin
Auto Trait Implementations§
impl Freeze for FanOutLoggingPlugin
impl !RefUnwindSafe for FanOutLoggingPlugin
impl Send for FanOutLoggingPlugin
impl Sync for FanOutLoggingPlugin
impl Unpin for FanOutLoggingPlugin
impl UnsafeUnpin for FanOutLoggingPlugin
impl !UnwindSafe for FanOutLoggingPlugin
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