pub struct LoggingSubscriberBuilder {
pub display_line_number: bool,
pub display_level: bool,
pub display_time: bool,
pub display_target: bool,
pub display_filename: bool,
/* private fields */
}
Fields§
§display_line_number: bool
§display_level: bool
§display_time: bool
§display_target: bool
§display_filename: bool
Implementations§
Source§impl LoggingSubscriberBuilder
impl LoggingSubscriberBuilder
pub fn build(self) -> LoggingSubscriberLayer
pub fn with_min_level(self, value: LevelFilter) -> Self
pub fn with_separator(self, value: String) -> Self
pub fn with_timestamp_format(self, value: String) -> Self
pub fn with_format_level(self, value: LevelOutput) -> Self
pub fn with_default_style<S>(self, value: S) -> Self
pub fn with_date_time_style<S>(self, value: S) -> Self
pub fn with_level_style_error<S>(self, value: S) -> Self
pub fn with_level_style_warn<S>(self, value: S) -> Self
pub fn with_level_style_debug<S>(self, value: S) -> Self
pub fn with_level_style_trace<S>(self, value: S) -> Self
pub fn with_level_style_info<S>(self, value: S) -> Self
pub fn with_style_error<S>(self, value: Option<S>) -> Self
pub fn with_style_warn<S>(self, value: Option<S>) -> Self
pub fn with_style_info<S>(self, value: Option<S>) -> Self
pub fn with_style_debug<S>(self, value: Option<S>) -> Self
pub fn with_style_trace<S>(self, value: Option<S>) -> Self
pub fn with_line_number(self, display_line_number: bool) -> Self
pub fn with_level(self, display_level: bool) -> Self
pub fn with_time(self, display_time: bool) -> Self
pub fn with_target(self, display_target: bool) -> Self
pub fn with_file(self, display_filename: bool) -> Self
Trait Implementations§
Source§impl Clone for LoggingSubscriberBuilder
impl Clone for LoggingSubscriberBuilder
Source§fn clone(&self) -> LoggingSubscriberBuilder
fn clone(&self) -> LoggingSubscriberBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoggingSubscriberBuilder
impl Debug for LoggingSubscriberBuilder
Source§impl Default for LoggingSubscriberBuilder
impl Default for LoggingSubscriberBuilder
Source§impl From<LoggingSubscriberBuilder> for LoggingWriter
impl From<LoggingSubscriberBuilder> for LoggingWriter
Source§fn from(value: LoggingSubscriberBuilder) -> Self
fn from(value: LoggingSubscriberBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoggingSubscriberBuilder
impl RefUnwindSafe for LoggingSubscriberBuilder
impl Send for LoggingSubscriberBuilder
impl Sync for LoggingSubscriberBuilder
impl Unpin for LoggingSubscriberBuilder
impl UnwindSafe for LoggingSubscriberBuilder
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