pub struct PluginLogConfiguration {
pub name: String,
pub verbosity: LoglevelFilter,
pub tee_files: Vec<TeeFileConfiguration>,
}Expand description
Configuration structure for the plugin logging system.
Fields§
§name: StringInstance name of the plugin used to identify it in log messages.
verbosity: LoglevelFilterSpecifies the verbosity of the messages sent to DQCsim.
tee_files: Vec<TeeFileConfiguration>Specifies the tee file configurations for this plugin.
Implementations§
Source§impl PluginLogConfiguration
impl PluginLogConfiguration
Sourcepub fn new(
name: impl Into<String>,
verbosity: LoglevelFilter,
) -> PluginLogConfiguration
pub fn new( name: impl Into<String>, verbosity: LoglevelFilter, ) -> PluginLogConfiguration
Returns a new PluginLogConfiguration. PluginLogConfigurations constructed using this method have no tee files setup by default.
Trait Implementations§
Source§impl Clone for PluginLogConfiguration
impl Clone for PluginLogConfiguration
Source§fn clone(&self) -> PluginLogConfiguration
fn clone(&self) -> PluginLogConfiguration
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 Debug for PluginLogConfiguration
impl Debug for PluginLogConfiguration
Source§impl<'de> Deserialize<'de> for PluginLogConfiguration
impl<'de> Deserialize<'de> for PluginLogConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PluginProcessConfiguration> for PluginLogConfiguration
impl From<&PluginProcessConfiguration> for PluginLogConfiguration
Source§fn from(cfg: &PluginProcessConfiguration) -> PluginLogConfiguration
fn from(cfg: &PluginProcessConfiguration) -> PluginLogConfiguration
Converts to this type from the input type.
Source§impl PartialEq for PluginLogConfiguration
impl PartialEq for PluginLogConfiguration
Source§impl Serialize for PluginLogConfiguration
impl Serialize for PluginLogConfiguration
impl StructuralPartialEq for PluginLogConfiguration
Auto Trait Implementations§
impl Freeze for PluginLogConfiguration
impl RefUnwindSafe for PluginLogConfiguration
impl Send for PluginLogConfiguration
impl Sync for PluginLogConfiguration
impl Unpin for PluginLogConfiguration
impl UnsafeUnpin for PluginLogConfiguration
impl UnwindSafe for PluginLogConfiguration
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