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]
impl Network
pub fn new(handle: &Handle) -> Network
[src]
pub fn new(handle: &Handle) -> Network
Create a new Network
running on the given event loop.
pub fn handle(&self) -> NetworkHandle
[src]
pub fn handle(&self) -> NetworkHandle
Get a handle to the network. Can be used to spawn tasks to the network.