Struct netsim::RouteV6
[−]
[src]
pub struct RouteV6 { /* fields omitted */ }
Represents an IPv6 route.
Methods
impl RouteV6
[src]
pub fn new(destination: Ipv6Range, next_hop: Ipv6Addr) -> RouteV6
[src]
Create a new route with the given destination and next hop.
pub fn destination(&self) -> Ipv6Range
[src]
Get the destination IP range of the route.
pub fn next_hop(&self) -> Ipv6Addr
[src]
Get the route's next hop
pub fn add_to_routing_table(self, iface_name: &str) -> Result<(), AddRouteError>
[src]
Add the route to the routing table of the current network namespace.
Trait Implementations
impl Debug for RouteV6
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RouteV6
[src]
fn clone(&self) -> RouteV6
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more