pub struct InstalledRoute<I: Ip> {
pub route: Route<I>,
pub effective_properties: EffectiveRouteProperties,
pub table_id: TableId,
}
Expand description
An installed route, abstracting over fnet_routes::InstalledRouteV4
and
fnet_routes::InstalledRouteV6
.
Fields§
§route: Route<I>
The route.
effective_properties: EffectiveRouteProperties
The route’s effective properties.
table_id: TableId
The table which this route belongs to.
Implementations§
Source§impl<I: Ip> InstalledRoute<I>
impl<I: Ip> InstalledRoute<I>
Sourcepub fn matches_route_and_table_id(
&self,
route: &Route<I>,
table_id: TableId,
) -> bool
pub fn matches_route_and_table_id( &self, route: &Route<I>, table_id: TableId, ) -> bool
Tests if the InstalledRoute
matches the given route and table_id.
Trait Implementations§
Source§impl<I: Clone + Ip> Clone for InstalledRoute<I>
impl<I: Clone + Ip> Clone for InstalledRoute<I>
Source§fn clone(&self) -> InstalledRoute<I>
fn clone(&self) -> InstalledRoute<I>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<I: Ord + Ip> Ord for InstalledRoute<I>
impl<I: Ord + Ip> Ord for InstalledRoute<I>
Source§fn cmp(&self, other: &InstalledRoute<I>) -> Ordering
fn cmp(&self, other: &InstalledRoute<I>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<I: PartialOrd + Ip> PartialOrd for InstalledRoute<I>
impl<I: PartialOrd + Ip> PartialOrd for InstalledRoute<I>
Source§impl TryFrom<InstalledRoute<Ipv4>> for InstalledRouteV4
impl TryFrom<InstalledRoute<Ipv4>> for InstalledRouteV4
Source§impl TryFrom<InstalledRoute<Ipv6>> for InstalledRouteV6
impl TryFrom<InstalledRoute<Ipv6>> for InstalledRouteV6
Source§impl TryFrom<InstalledRouteV4> for InstalledRoute<Ipv4>
impl TryFrom<InstalledRouteV4> for InstalledRoute<Ipv4>
Source§type Error = FidlConversionError<InstalledRouteRequiredFields>
type Error = FidlConversionError<InstalledRouteRequiredFields>
The type returned in the event of a conversion error.
Source§impl TryFrom<InstalledRouteV6> for InstalledRoute<Ipv6>
impl TryFrom<InstalledRouteV6> for InstalledRoute<Ipv6>
Source§type Error = FidlConversionError<InstalledRouteRequiredFields>
type Error = FidlConversionError<InstalledRouteRequiredFields>
The type returned in the event of a conversion error.
impl<I: Copy + Ip> Copy for InstalledRoute<I>
impl<I: Eq + Ip> Eq for InstalledRoute<I>
impl<I: Ip> StructuralPartialEq for InstalledRoute<I>
Auto Trait Implementations§
impl<I> Freeze for InstalledRoute<I>
impl<I> RefUnwindSafe for InstalledRoute<I>
impl<I> Send for InstalledRoute<I>
impl<I> Sync for InstalledRoute<I>
impl<I> Unpin for InstalledRoute<I>
impl<I> UnwindSafe for InstalledRoute<I>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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> Pointable for T
impl<T> Pointable for T
Source§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
Source§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.