pub struct TracingConfigBuilder<___State = __TracingConfigBuilderInitialState> { /* private fields */ }Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build().
Implementations§
Source§impl<__LogFile, __LogLevel, __LogFormat> TracingConfigBuilder<(__LogFile, __LogLevel, __LogFormat)>
impl<__LogFile, __LogLevel, __LogFormat> TracingConfigBuilder<(__LogFile, __LogLevel, __LogFormat)>
Sourcepub fn build(self) -> TracingConfigwhere
__LogFile: IntoSet<Option<Utf8PathBuf>, TracingConfigBuilder__log_file>,
__LogLevel: IntoSet<Option<String>, TracingConfigBuilder__log_level>,
__LogFormat: IntoSet<Option<LinesFormat>, TracingConfigBuilder__log_format>,
pub fn build(self) -> TracingConfigwhere
__LogFile: IntoSet<Option<Utf8PathBuf>, TracingConfigBuilder__log_file>,
__LogLevel: IntoSet<Option<String>, TracingConfigBuilder__log_level>,
__LogFormat: IntoSet<Option<LinesFormat>, TracingConfigBuilder__log_format>,
Finishes building and returns the requested object.
Sourcepub fn maybe_log_file(
self,
value: Option<Utf8PathBuf>,
) -> <Self as __TracingConfigBuilderSetMember>::LogFilewhere
__LogFile: IsUnset,
pub fn maybe_log_file(
self,
value: Option<Utf8PathBuf>,
) -> <Self as __TracingConfigBuilderSetMember>::LogFilewhere
__LogFile: IsUnset,
Same as Self::log_file, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn log_file(
self,
value: Utf8PathBuf,
) -> <Self as __TracingConfigBuilderSetMember>::LogFilewhere
__LogFile: IsUnset,
pub fn log_file(
self,
value: Utf8PathBuf,
) -> <Self as __TracingConfigBuilderSetMember>::LogFilewhere
__LogFile: IsUnset,
Output file for log lines. Default is stderr.
Sourcepub fn maybe_log_level(
self,
value: Option<String>,
) -> <Self as __TracingConfigBuilderSetMember>::LogLevelwhere
__LogLevel: IsUnset,
pub fn maybe_log_level(
self,
value: Option<String>,
) -> <Self as __TracingConfigBuilderSetMember>::LogLevelwhere
__LogLevel: IsUnset,
Same as Self::log_level, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn log_level(
self,
value: String,
) -> <Self as __TracingConfigBuilderSetMember>::LogLevelwhere
__LogLevel: IsUnset,
pub fn log_level(
self,
value: String,
) -> <Self as __TracingConfigBuilderSetMember>::LogLevelwhere
__LogLevel: IsUnset,
Filter directive for log lines. Default is info.
Sourcepub fn maybe_log_format(
self,
value: Option<LinesFormat>,
) -> <Self as __TracingConfigBuilderSetMember>::LogFormatwhere
__LogFormat: IsUnset,
pub fn maybe_log_format(
self,
value: Option<LinesFormat>,
) -> <Self as __TracingConfigBuilderSetMember>::LogFormatwhere
__LogFormat: IsUnset,
Same as Self::log_format, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn log_format(
self,
value: LinesFormat,
) -> <Self as __TracingConfigBuilderSetMember>::LogFormatwhere
__LogFormat: IsUnset,
pub fn log_format(
self,
value: LinesFormat,
) -> <Self as __TracingConfigBuilderSetMember>::LogFormatwhere
__LogFormat: IsUnset,
Output format for log lines. Default is glog.
Auto Trait Implementations§
impl<___State> Freeze for TracingConfigBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for TracingConfigBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for TracingConfigBuilder<___State>where
___State: Send,
impl<___State> Sync for TracingConfigBuilder<___State>where
___State: Sync,
impl<___State> Unpin for TracingConfigBuilder<___State>where
___State: Unpin,
impl<___State> UnsafeUnpin for TracingConfigBuilder<___State>where
___State: UnsafeUnpin,
impl<___State> UnwindSafe for TracingConfigBuilder<___State>where
___State: UnwindSafe,
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