[][src]Struct dqcsim::host::reproduction::PluginModification

pub struct PluginModification {
    pub name: String,
    pub verbosity: Option<LoglevelFilter>,
    pub tee_files: Vec<TeeFileConfiguration>,
    pub stdout_mode: Option<StreamCaptureMode>,
    pub stderr_mode: Option<StreamCaptureMode>,
    pub accept_timeout: Option<Timeout>,
    pub shutdown_timeout: Option<Timeout>,
}

Represents a nonfunctional configuration modification for a previously defined plugin.

This allows the nonfunctional configuration of the plugin to be modified. This is particularly important when DQCsim is running in --reproduce-exactly mode; it is of marginal use to reproduce a run exactly if you're not looking to get additional information from it by changing loglevels and such.

Fields

name: String

Name of the referenced plugin.

verbosity: Option<LoglevelFilter>

Specifies the verbosity of the messages sent to DQCsim. If this is None, the value of DQCsim's --plugin_level option should be used.

tee_files: Vec<TeeFileConfiguration>

Specifies the tee file configuration for this plugin.

stdout_mode: Option<StreamCaptureMode>

Specifies how the stdout stream of the plugin should be connected. None implies default.

stderr_mode: Option<StreamCaptureMode>

Specifies how the stderr stream of the plugin should be connected. None implies default.

accept_timeout: Option<Timeout>

Specifies the timeout for connecting to the plugin after it has been spawned.

shutdown_timeout: Option<Timeout>

Specifies the timeout for connecting to the plugin after it has been spawned.

Implementations

impl PluginModification[src]

pub fn apply(self, to: &mut Vec<PluginProcessConfiguration>) -> Result<()>[src]

Applies this plugin modification to a plugin definition vector.

An error is returned if the referenced plugin cannot be found in the vector, otherwise Ok(()) is returned.

Trait Implementations

impl Debug for PluginModification[src]

Auto Trait Implementations

impl RefUnwindSafe for PluginModification

impl Send for PluginModification

impl Sync for PluginModification

impl Unpin for PluginModification

impl UnwindSafe for PluginModification

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, 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>,