pub struct EventSinkRegistration {
pub name: &'static str,
pub factory: fn() -> Arc<dyn EventSink>,
}Expand description
Registration entry for auto-discovered event sinks.
Fields§
§name: &'static strCanonical sink name (e.g. "stdout").
factory: fn() -> Arc<dyn EventSink>Factory function that constructs the event sink.
Implementations§
Trait Implementations§
impl Collect for EventSinkRegistration
Auto Trait Implementations§
impl Freeze for EventSinkRegistration
impl RefUnwindSafe for EventSinkRegistration
impl Send for EventSinkRegistration
impl Sync for EventSinkRegistration
impl Unpin for EventSinkRegistration
impl UnsafeUnpin for EventSinkRegistration
impl UnwindSafe for EventSinkRegistration
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