Struct netsim::NetworkHandle [−][src]
pub struct NetworkHandle { /* fields omitted */ }
A handle to a Network
Methods
impl NetworkHandle
[src]
impl NetworkHandle
pub fn event_loop(&self) -> &Handle
[src]
pub fn event_loop(&self) -> &Handle
Get a copy of the event loop handle
pub fn spawn<F>(&self, f: F) where
F: Future<Item = (), Error = Void> + 'static,
[src]
pub fn spawn<F>(&self, f: F) where
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]
impl Clone for NetworkHandle
fn clone(&self) -> NetworkHandle
[src]
fn clone(&self) -> NetworkHandle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !Send for NetworkHandle
impl !Send for NetworkHandle
impl !Sync for NetworkHandle
impl !Sync for NetworkHandle