Struct unbase::network::transport::Simulator
[−]
[src]
pub struct Simulator { /* fields omitted */ }
Methods
impl Simulator
[src]
pub fn new() -> Self
[src]
pub fn manual_time_step(&self) -> JoinHandle<()>
[src]
pub fn metronome(&self, ms: u64) -> JoinHandle<()>
[src]
pub fn pause(&self)
[src]
pub fn resume(&self)
[src]
pub fn clear_wait(&mut self)
[src]
pub fn wait_ticks(&mut self, count: u64)
[src]
pub fn wait_idle(&mut self)
[src]
pub fn get_clock(&self) -> u64
[src]
pub fn advance_clock(&self, ticks: u64)
[src]
Trait Implementations
impl Clone for Simulator
[src]
fn clone(&self) -> Simulator
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Simulator
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Transport for Simulator
[src]
fn is_local(&self) -> bool
[src]
fn make_transmitter(&self, args: &TransmitterArgs) -> Option<Transmitter>
[src]
fn bind_network(&self, _net: &Network)
[src]
fn unbind_network(&self, _net: &Network)
[src]
fn get_return_address(
&self,
address: &TransportAddress
) -> Option<TransportAddress>
[src]
&self,
address: &TransportAddress
) -> Option<TransportAddress>