Struct netsim::Network
[−]
[src]
pub struct Network { /* fields omitted */ }
A Network
manages a set of tasks/devices. Dropping the Network
will destroy all associated
tasks/devices.
Methods
impl Network
[src]
pub fn new(handle: &Handle) -> Network
[src]
Create a new Network
running on the given event loop.
pub fn handle(&self) -> NetworkHandle
[src]
Get a handle to the network. Can be used to spawn tasks to the network.