[][src]Struct dqcsim::host::plugin::process::PluginProcess

pub struct PluginProcess { /* fields omitted */ }

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.

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]

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