MCPcopy Create free account

hub / github.com/canndrew/netsim / functions

Functions164 in github.com/canndrew/netsim

Methoddata
(&self)
src/packet.rs:698
Methoddrop
(&mut self)
src/machine.rs:89
Methoddrop
(&mut self)
src/namespace.rs:65
Methodfmt
(&self, formatter: &mut fmt::Formatter)
src/packet.rs:167
Methodfmt
(&self, f: &mut fmt::Formatter)
src/network.rs:252
Methodfrom_str
(s: &str)
src/network.rs:278
Methodhair_pinning
Enables [NAT hair-pinning](https://en.wikipedia.org/wiki/Network_address_translation#NAT_hairpinning).
src/device/nat/mod.rs:48
Methodinfer_from_addr
Guesses an `Ipv4Network` from an `Ipv4Addr` by checking which, if any, of the [reserved IP address ranges](https://en.wikipedia.org/wiki/Reserved_IP_a
src/network.rs:130
Methodinsert_iface
Insert an interface into the internal side of this NAT. Packets sent by this interface to addresses outside the NAT's internal network will be address
src/device/nat/mod.rs:134
Methodinto_future
(self)
src/machine.rs:134
Methodipv4_default_route_with_gateway
Adds an IPv4 route to the machine's routing table which forwards through this interface via the specified gateway. Sets it as the default route.
src/iface/create.rs:82
Functionipv4_network
(input: TokenStream)
netsim-macros/src/lib.rs:19
Methodipv6_addr
Sets the interface's IPv6 address.
src/iface/create.rs:49
Methodipv6_default_route
Adds an IPv6 route for this interface to the machine's routing table and sets it as the default route.
src/iface/create.rs:94
Functionipv6_network
(input: TokenStream)
netsim-macros/src/lib.rs:66
Methodipv6_route
Adds an IPv6 route for this interface to the machine's routing table.
src/iface/create.rs:87
Methodis_terminated
(&self)
src/device/channel.rs:144
Methodis_terminated
(&self)
src/adapter/loss.rs:143
Functionisolate
(_attr: TokenStream, input: TokenStream)
netsim-macros/src/lib.rs:110
Functionmain
()
examples/capture_packet.rs:12
Functionmain
()
examples/ping_pong.rs:16
Functionmain
()
examples/nat.rs:17
Functionmain
()
examples/isolate.rs:10
Methodname
Sets the interface name. Defaults to "netsim" if not set.
src/iface/create.rs:35
Functionnat_tcp_reset
()
src/tests/nat.rs:72
Methodnew
Create a new machine. A machine initially has no network interfaces, so attempting to (eg.) make an outgoing TCP connection from a future running on t
src/machine.rs:28
Methodnew
()
src/packet.rs:21
Methodnew
Creates a network range containing `base_addr` and all addresses that share the same `subnet_mask_bits` most-significant bits. # Example `Ipv4Networ
src/network.rs:78
Methodnew
(fd: OwnedFd)
src/iface/stream.rs:17
Methodnew
(machine: &Machine)
src/iface/create.rs:21
Methodnew
Creates a connected pair of `BiChannel`s.
src/device/channel.rs:12
Methodnew
()
src/device/hub.rs:19
Methodnew
Starts building a [`Nat`](crate::device::Nat). Use to configure the NAT then call [`build`](crate::device::NatBuilder::build) to create the NAT. `ext
src/device/nat/mod.rs:36
Methodnew
()
src/device/nat/port_map.rs:12
Methodnew
(loss_rate: f64, jitter_period: Duration)
src/adapter/loss.rs:22
Methodnew
()
src/adapter/delay.rs:31
Methodnew_box
(data: Box<[u8]>)
src/packet.rs:246
Methodnext_back
(&mut self)
src/network.rs:412
Functionnon_zero_jitter_is_locally_non_random
()
src/tests/loss.rs:52
Methodpoll
(self: Pin<&mut Self>, cx: &mut task::Context)
src/device/nat/mod.rs:563
Methodpoll_close
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:83
Methodpoll_close
(self: Pin<&mut Self>, cx: &mut task::Context)
src/device/channel.rs:49
Methodpoll_close
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/loss.rs:133
Methodpoll_close
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/delay.rs:190
Methodpoll_flush
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:45
Methodpoll_flush
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/loss.rs:128
Methodpoll_flush
(self: Pin<&mut Self>, cx: &mut task::Context<'_>)
src/adapter/delay.rs:162
Methodpoll_next
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:94
Methodpoll_next
(self: Pin<&mut Self>, cx: &mut task::Context)
src/adapter/loss.rs:89
Methodpoll_next
(self: Pin<&mut Self>, cx: &mut task::Context)
src/adapter/delay.rs:108
Methodpoll_ready
( self: Pin<&mut Self>, cx: &mut task::Context<'_>, )
src/iface/stream.rs:31
Methodpoll_ready
(self: Pin<&mut Self>, cx: &mut task::Context)
src/adapter/loss.rs:114
Methodprotocol_arc
(self: Arc<Ipv4Packet>)
src/packet.rs:325
Methodprotocol_mut
(&mut self)
src/packet.rs:345
Functionrandom_delays_are_approx_correct
()
src/tests/delay.rs:55
Methodset_seq_number
(&mut self, seq_number: u32)
src/packet.rs:572
Methodsize_hint
(&self)
src/network.rs:388
Methodsource
(&self)
src/network.rs:364
Methodstart_send
(self: Pin<&mut Self>, item: Box<IpPacket>)
src/iface/stream.rs:38
Methodstart_send
(self: Pin<&mut Self>, item: T)
src/adapter/loss.rs:119
Methodversion_arc
(self: Arc<IpPacket>)
src/packet.rs:260
Methodversion_mut
(&mut self)
src/packet.rs:278
Functionzero_jitter_is_random
()
src/tests/loss.rs:4
Functionzero_random_delay_in_order
()
src/tests/delay.rs:4
← previous101–164 of 164, ranked by callers