pub enum ConsoleLogSettings {
Disabled,
Enabled {
common_settings: Settings,
log_format: Format,
},
}
Expand description
Configure specific settings for the console log subscriber.
Variants§
Trait Implementations§
Source§impl Debug for ConsoleLogSettings
impl Debug for ConsoleLogSettings
Source§impl Default for ConsoleLogSettings
impl Default for ConsoleLogSettings
Source§fn default() -> ConsoleLogSettings
fn default() -> ConsoleLogSettings
Returns the “default value” for a type. Read more
Source§impl From<(&'static str, LevelFilter)> for ConsoleLogSettings
impl From<(&'static str, LevelFilter)> for ConsoleLogSettings
Source§impl<T> From<Option<T>> for ConsoleLogSettingswhere
T: Into<ConsoleLogSettings>,
impl<T> From<Option<T>> for ConsoleLogSettingswhere
T: Into<ConsoleLogSettings>,
Source§impl From<Settings> for ConsoleLogSettings
impl From<Settings> for ConsoleLogSettings
Source§impl PartialEq for ConsoleLogSettings
impl PartialEq for ConsoleLogSettings
Source§impl SettingsToggle for ConsoleLogSettings
impl SettingsToggle for ConsoleLogSettings
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Whether the settings are enabled or not.
Source§fn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
The opposite of SettingsToggle::is_enabled as a helper.
impl StructuralPartialEq for ConsoleLogSettings
Auto Trait Implementations§
impl Freeze for ConsoleLogSettings
impl RefUnwindSafe for ConsoleLogSettings
impl Send for ConsoleLogSettings
impl Sync for ConsoleLogSettings
impl Unpin for ConsoleLogSettings
impl UnwindSafe for ConsoleLogSettings
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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