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