pub struct LoggingOptions<'a> {
pub tags: &'a [&'static str],
pub interest: Interest,
pub panic_prefix: &'static str,
pub always_log_file_line: bool,
}Expand description
Options used when initializing logging.
Fields§
Tags with which to initialize the logging system. All logs will carry the tags configured here.
interest: InterestAllows to configure the minimum severity of the logs being emitted. Logs of lower severity won’t be emitted.
panic_prefix: &'static strString to include in logged panic messages.
always_log_file_line: boolTrue to always log file/line information, false to only log when severity is ERROR or above.
Trait Implementations§
Source§impl<'a> Clone for LoggingOptions<'a>
impl<'a> Clone for LoggingOptions<'a>
Source§fn clone(&self) -> LoggingOptions<'a>
fn clone(&self) -> LoggingOptions<'a>
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<'a> Default for LoggingOptions<'a>
impl<'a> Default for LoggingOptions<'a>
Source§fn default() -> LoggingOptions<'a>
fn default() -> LoggingOptions<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> From<LoggingOptions<'a>> for PublishOptions<'a>
Available on Fuchsia only.
impl<'a> From<LoggingOptions<'a>> for PublishOptions<'a>
Available on Fuchsia only.
Source§fn from(logging: LoggingOptions<'a>) -> Self
fn from(logging: LoggingOptions<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for LoggingOptions<'a>
impl<'a> RefUnwindSafe for LoggingOptions<'a>
impl<'a> Send for LoggingOptions<'a>
impl<'a> Sync for LoggingOptions<'a>
impl<'a> Unpin for LoggingOptions<'a>
impl<'a> UnwindSafe for LoggingOptions<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more