[−][src]Struct dqcsim::host::simulator::Simulator
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
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]
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>,