Struct netsim::RouteV4 [] [src]

pub struct RouteV4 { /* fields omitted */ }

Represents an IPv4 route.

Methods

impl RouteV4
[src]

[src]

Create a new route with the given destination and gateway

[src]

Get the destination subnet of the route.

[src]

Get the route's gateway (if any).

[src]

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

Trait Implementations

impl Debug for RouteV4
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for RouteV4
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for RouteV4
[src]

Auto Trait Implementations

impl Send for RouteV4

impl Sync for RouteV4