pub struct RouteTable { /* private fields */ }
Expand description
Keeps track of the current routing state, as observed from the Netstack
fuchsia.net.routes/WatcherV{4,6}
protocols.
Implementations§
Source§impl RouteTable
impl RouteTable
Sourcepub fn new_with_existing_routes(
v4_routes: HashSet<InstalledRoute<Ipv4>>,
v6_routes: HashSet<InstalledRoute<Ipv6>>,
) -> RouteTable
pub fn new_with_existing_routes( v4_routes: HashSet<InstalledRoute<Ipv4>>, v6_routes: HashSet<InstalledRoute<Ipv6>>, ) -> RouteTable
Constructs a new RouteTable with the provided existing routes.
pub fn add_route<I: Ip>(&mut self, route: InstalledRoute<I>) -> bool
pub fn remove_route<I: Ip>(&mut self, route: &InstalledRoute<I>) -> bool
Trait Implementations§
Source§impl Debug for RouteTable
impl Debug for RouteTable
Source§impl Default for RouteTable
impl Default for RouteTable
Source§fn default() -> RouteTable
fn default() -> RouteTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RouteTable
impl RefUnwindSafe for RouteTable
impl Send for RouteTable
impl Sync for RouteTable
impl Unpin for RouteTable
impl UnwindSafe for RouteTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more