pub struct RunMainConfig {
pub install_tracing: bool,
}Expand description
Options for run_main.
Fields§
§install_tracing: boolWhen true, installs the default tracing layer via install_tracing_layer
(TracingConfig::enabled) before running effect.
Implementations§
Source§impl RunMainConfig
impl RunMainConfig
Sourcepub fn with_tracing() -> Self
pub fn with_tracing() -> Self
Same as RunMainConfig::minimal but installs tracing first.
Trait Implementations§
Source§impl Clone for RunMainConfig
impl Clone for RunMainConfig
Source§fn clone(&self) -> RunMainConfig
fn clone(&self) -> RunMainConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RunMainConfig
impl RefUnwindSafe for RunMainConfig
impl Send for RunMainConfig
impl Sync for RunMainConfig
impl Unpin for RunMainConfig
impl UnsafeUnpin for RunMainConfig
impl UnwindSafe for RunMainConfig
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> Capability for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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