Struct netsim::NetworkHandle
[−]
[src]
pub struct NetworkHandle { /* fields omitted */ }
A handle to a Network
Methods
impl NetworkHandle
[src]
pub fn event_loop(&self) -> &Handle
[src]
Get a copy of the event loop handle
pub fn spawn<F>(&self, f: F) where
F: Future<Item = (), Error = Void> + 'static,
[src]
F: Future<Item = (), Error = Void> + 'static,
Spawn a future to the event loop. The future will be cancelled when the Network
is
destroyed,
Trait Implementations
impl Clone for NetworkHandle
[src]
fn clone(&self) -> NetworkHandle
[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