[][src]Struct dqcsim::host::simulator::Simulator

pub struct Simulator {
    pub simulation: Simulation,
    // some fields omitted
}

Simulator driver instance.

A Simulator instance wraps around a Simulation run and a LogThread. Its behavior is defined by a SimulatorConfiguration. The Simulator is used to spawn the LogThread and construct and initialize the Pipeline of the Simulation.

After construction, users should directly interact with the Simulation through the public simulation field.

When the Simulator gets dropped it will ensure the Simulation gets dropped before the LogThread.

Fields

simulation: Simulation

The Simulation driven by this Simulator.

Implementations

impl Simulator[src]

pub fn new(configuration: SimulatorConfiguration) -> Result<Simulator>[src]

Constructs a Simulator driver.

Spawns the log thread and constructs and initializes the inner Simulation instance. Returns the Simulator driver instance.

Trait Implementations

impl Debug for Simulator[src]

impl Drop for Simulator[src]

Auto Trait Implementations

impl !RefUnwindSafe for Simulator

impl !Send for Simulator

impl !Sync for Simulator

impl Unpin for Simulator

impl !UnwindSafe for Simulator

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