[][src]Struct spirit_log::CfgAndOpts

pub struct CfgAndOpts {
    pub cfg: Cfg,
    pub opts: Opts,
}

A combination of Cfg and Opts.

This is a composed Fragment ‒ the purpose is the caller can combine configuration both from command line options and configuration inside the same Pipeline ‒ see the crate examples.

The Fragment will then combine the options to create the relevant loggers.

Interaction on stderr

There's a little twist around stderr and the interaction between the -L option and loggers set up in configuration. This is to act in a way that makes some sense ‒ in particular, we don't want to log to stderr twice. Therefore:

Fields

cfg: Cfg

The configuration options.

opts: Opts

The command line options.

Trait Implementations

impl Clone for CfgAndOpts[src]

impl Debug for CfgAndOpts[src]

impl Fragment for CfgAndOpts[src]

type Driver = TrivialDriver

The default driver to be used by the fragment. Read more

type Seed = ()

The intermediate product if the fragment supports two-stage creation of Resources. If not, it can be set to (). Read more

type Resource = Dispatch

The actual product this Fragment creates.

type Installer = LogInstaller

The default installer to be used unless a transformation or the user doesn't provide one. Read more

Auto Trait Implementations

impl RefUnwindSafe for CfgAndOpts

impl Send for CfgAndOpts

impl Sync for CfgAndOpts

impl Unpin for CfgAndOpts

impl UnwindSafe for CfgAndOpts

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.