Struct netsim::Ipv4Route[][src]

pub struct Ipv4Route { /* fields omitted */ }

Represents an IPv4 route.

Methods

impl Ipv4Route
[src]

Create a new route with the given destination and gateway

Get the destination IP range of the route.

Get the route's gateway (if any).

Add the route to the routing table of the current network namespace.

Trait Implementations

impl Debug for Ipv4Route
[src]

Formats the value using the given formatter. Read more

impl Clone for Ipv4Route
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Ipv4Route
[src]

Auto Trait Implementations

impl Send for Ipv4Route

impl Sync for Ipv4Route