pub struct FileSet { /* private fields */ }
Expand description
A handle to an asynchronous, background, rolling file writer.
Create a file set through the set
function, calling FileSetBuilder::spawn
to complete configuration. Pass the resulting FileSet
to emit::Setup::emit_to
to configure emit
to write diagnostic events through it.
Implementations§
Source§impl FileSet
impl FileSet
Sourcepub fn metric_source(&self) -> FileSetMetrics
pub fn metric_source(&self) -> FileSetMetrics
Get an emit::metric::Source
for instrumentation produced by the file set.
These metrics can be used to monitor the running health of your diagnostic pipeline.
Trait Implementations§
Source§impl Emitter for FileSet
impl Emitter for FileSet
Auto Trait Implementations§
impl Freeze for FileSet
impl !RefUnwindSafe for FileSet
impl Send for FileSet
impl Sync for FileSet
impl Unpin for FileSet
impl !UnwindSafe for FileSet
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