pub struct QlogConfig { /* private fields */ }Expand description
Configuration for qlog trace logging.
This struct is returned from QlogFactory::for_connection if qlog logging should
be enabled for a connection. It allows to set metadata for the qlog trace.
The trace will be written to the provided writer in the [JSON-SEQ format] defined in the qlog spec.
Implementations§
Source§impl QlogConfig
impl QlogConfig
Sourcepub fn new(writer: Box<dyn Write + Send + Sync>) -> QlogConfig
pub fn new(writer: Box<dyn Write + Send + Sync>) -> QlogConfig
Creates a new QlogConfig that writes a qlog trace to the specified writer.
Sourcepub fn title(&mut self, title: Option<String>) -> &mut QlogConfig
pub fn title(&mut self, title: Option<String>) -> &mut QlogConfig
Title to record in the qlog capture
Sourcepub fn description(&mut self, description: Option<String>) -> &mut QlogConfig
pub fn description(&mut self, description: Option<String>) -> &mut QlogConfig
Description to record in the qlog capture
Sourcepub fn start_time(&mut self, start_time: Instant) -> &mut QlogConfig
pub fn start_time(&mut self, start_time: Instant) -> &mut QlogConfig
Epoch qlog event times are recorded relative to
If unset, the start of the connection is used.
Auto Trait Implementations§
impl Freeze for QlogConfig
impl !RefUnwindSafe for QlogConfig
impl Send for QlogConfig
impl Sync for QlogConfig
impl Unpin for QlogConfig
impl !UnwindSafe for QlogConfig
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