[−][src]Struct dqcsim::host::configuration::PluginThreadConfiguration
Represents the complete configuration for a plugin running in a local thread.
Fields
closure: PluginThreadClosure
The closure that's called from within the plugin thread. It is
responsible for calling PluginState::run()
in one way or another.
plugin_type: PluginType
The type of plugin that the closure is expected to start.
init_cmds: Vec<ArbCmd>
The vector of ArbCmd
s passed to the initialize()
closure.
This is mostly useless since you can also just move data directly into the closures prior to plugin construction. Therefore it is not part of the constructor function. It is mostly just left here for uniformity with the external process method of constructing a plugin.
log_configuration: PluginLogConfiguration
Configuration for the logging subsystem of the plugin.
Implementations
impl PluginThreadConfiguration
[src]
pub fn new(
definition: PluginDefinition,
log_configuration: PluginLogConfiguration
) -> PluginThreadConfiguration
[src]
definition: PluginDefinition,
log_configuration: PluginLogConfiguration
) -> PluginThreadConfiguration
Creates a new plugin configuration.
The default values are inserted for the configuration options.
pub fn new_raw(
closure: PluginThreadClosure,
plugin_type: PluginType,
log_configuration: PluginLogConfiguration
) -> PluginThreadConfiguration
[src]
closure: PluginThreadClosure,
plugin_type: PluginType,
log_configuration: PluginLogConfiguration
) -> PluginThreadConfiguration
Creates a new plugin through a custom closure.
The default values are inserted for the configuration options.
pub fn with_init_cmd(self, cmd: impl Into<ArbCmd>) -> PluginThreadConfiguration
[src]
Adds an init cmd to the list, builder style.
Trait Implementations
impl Debug for PluginThreadConfiguration
[src]
impl Into<Box<dyn PluginConfiguration + 'static, Global>> for PluginThreadConfiguration
[src]
fn into(self) -> Box<dyn PluginConfiguration>
[src]
impl PluginConfiguration for PluginThreadConfiguration
[src]
fn instantiate(self: Box<Self>) -> Box<dyn Plugin>
[src]
fn get_log_configuration(&self) -> PluginLogConfiguration
[src]
fn get_type(&self) -> PluginType
[src]
fn get_reproduction(
&self,
_: ReproductionPathStyle
) -> Result<PluginReproduction>
[src]
&self,
_: ReproductionPathStyle
) -> Result<PluginReproduction>
fn limit_verbosity(&mut self, max_verbosity: LoglevelFilter)
[src]
fn set_default_name(&mut self, default_name: String)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PluginThreadConfiguration
impl Send for PluginThreadConfiguration
impl !Sync for PluginThreadConfiguration
impl Unpin for PluginThreadConfiguration
impl !UnwindSafe for PluginThreadConfiguration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,