Struct netsim_embed::NetworkBuilder [−][src]
pub struct NetworkBuilder<C, E> { /* fields omitted */ }
Implementations
impl<C: Send + 'static, E: Send + 'static> NetworkBuilder<C, E>
[src]
impl<C: Send + 'static, E: Send + 'static> NetworkBuilder<C, E>
[src]pub fn new(range: Ipv4Range) -> Self
[src]
pub fn spawn_machine<B, F>(&mut self, config: Wire, builder: B) -> Ipv4Addr where
B: FnOnce(UnboundedReceiver<C>, UnboundedSender<E>) -> F + Send + 'static,
F: Future<Output = ()> + Send + 'static,
[src]
B: FnOnce(UnboundedReceiver<C>, UnboundedSender<E>) -> F + Send + 'static,
F: Future<Output = ()> + Send + 'static,
pub fn spawn_machine_with_command(
&mut self,
config: Wire,
command: Command
) -> Ipv4Addr where
C: Display,
E: FromStr,
E::Err: Debug + Send,
[src]
&mut self,
config: Wire,
command: Command
) -> Ipv4Addr where
C: Display,
E: FromStr,
E::Err: Debug + Send,
pub fn spawn_network(
&mut self,
config: Option<NatConfig>,
builder: NetworkBuilder<C, E>
)
[src]
&mut self,
config: Option<NatConfig>,
builder: NetworkBuilder<C, E>
)
pub fn spawn(self) -> Network<C, E>
[src]
Trait Implementations
Auto Trait Implementations
impl<C, E> !RefUnwindSafe for NetworkBuilder<C, E>
impl<C, E> !RefUnwindSafe for NetworkBuilder<C, E>
impl<C, E> Send for NetworkBuilder<C, E> where
C: Send,
E: Send,
impl<C, E> Send for NetworkBuilder<C, E> where
C: Send,
E: Send,
impl<C, E> Sync for NetworkBuilder<C, E> where
C: Send,
E: Send,
impl<C, E> Sync for NetworkBuilder<C, E> where
C: Send,
E: Send,
impl<C, E> Unpin for NetworkBuilder<C, E>
impl<C, E> Unpin for NetworkBuilder<C, E>
impl<C, E> !UnwindSafe for NetworkBuilder<C, E>
impl<C, E> !UnwindSafe for NetworkBuilder<C, E>
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,