[−][src]Struct dqcsim::host::plugin::process::PluginProcess
A Plugin running in a child process.
PluginProcess implements the Plugin
trait to enable the [Simulator
]
to spawn and connect the plugin.
A PluginProcess is defined by its PluginProcessConfiguration
.
Implementations
impl PluginProcess
[src]
pub fn new(configuration: PluginProcessConfiguration) -> PluginProcess
[src]
Constructs a new PluginProcess based on a PluginProcessConfiguration.
Returns the constructed PluginProcess. The child process is not spawned
at construction. The Plugin
trait's [spawn
] method spawns the
child process.
Trait Implementations
impl Debug for PluginProcess
[src]
impl Drop for PluginProcess
[src]
impl Plugin for PluginProcess
[src]
fn spawn(&mut self, logger: &LogThread) -> Result<()>
[src]
Spawn the child process based on the plugin configuration. The simulator address is passed as the first argument to the child process, or as the 2nd argument to the interpreter when the configuration specifies a script.
fn plugin_type(&self) -> PluginType
[src]
fn init_cmds(&self) -> Vec<ArbCmd>
[src]
fn log_configuration(&self) -> PluginLogConfiguration
[src]
fn rpc(&mut self, msg: SimulatorToPlugin) -> Result<PluginToSimulator>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PluginProcess
impl Send for PluginProcess
impl !Sync for PluginProcess
impl Unpin for PluginProcess
impl UnwindSafe for PluginProcess
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>,