Struct reachability_core::route_table::RouteTable
source · 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 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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.