pub struct LoggerConfig {
pub interval: Duration,
pub log_path: Option<PathBuf>,
pub header: LogHeader,
pub progress_source: Option<ProgressSource>,
}Expand description
Configuration for the logger task.
Fields§
§interval: Duration§log_path: Option<PathBuf>§header: LogHeader§progress_source: Option<ProgressSource>Optional progress source. When set and a log file is open, the logger calls it once per tick and writes one Progress record carrying the returned JSON bytes — letting offline tools correlate latency distributions with the throughput counters from the progress bar.
Auto Trait Implementations§
impl Freeze for LoggerConfig
impl !RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl UnsafeUnpin for LoggerConfig
impl !UnwindSafe for LoggerConfig
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request