[][src]Struct dqcsim::common::log::tee_file::TeeFileConfiguration

pub struct TeeFileConfiguration {
    pub filter: LoglevelFilter,
    pub file: PathBuf,
}

Represents a tee file configuration for the logging system.

Fields

filter: LoglevelFilterfile: PathBuf

Implementations

impl TeeFileConfiguration[src]

pub fn new(
    filter: impl Into<LoglevelFilter>,
    file: impl Into<PathBuf>
) -> TeeFileConfiguration
[src]

Constructs a new TeeFileConfiguration with the provided log level filter and path.

Trait Implementations

impl Clone for TeeFileConfiguration[src]

impl Debug for TeeFileConfiguration[src]

impl<'de> Deserialize<'de> for TeeFileConfiguration[src]

impl Display for TeeFileConfiguration[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Turns the TeeFile object into a string representation that can be parsed by from_str().

impl FromStr for TeeFileConfiguration[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Constructs a TeeFile from its string representation, which is of the form :. is parsed by LoglevelFilter::from_str() and thus supports abbreviations.

impl PartialEq<TeeFileConfiguration> for TeeFileConfiguration[src]

impl Serialize for TeeFileConfiguration[src]

impl StructuralPartialEq for TeeFileConfiguration[src]

Auto Trait Implementations

impl RefUnwindSafe for TeeFileConfiguration

impl Send for TeeFileConfiguration

impl Sync for TeeFileConfiguration

impl Unpin for TeeFileConfiguration

impl UnwindSafe for TeeFileConfiguration

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,