pub struct InstalledRoute<I: Ip> {
pub route: Route<I>,
pub effective_properties: EffectiveRouteProperties,
}
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.
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: PartialEq + Ip> PartialEq for InstalledRoute<I>
impl<I: PartialEq + Ip> PartialEq for InstalledRoute<I>
source§fn eq(&self, other: &InstalledRoute<I>) -> bool
fn eq(&self, other: &InstalledRoute<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<I: PartialOrd + Ip> PartialOrd for InstalledRoute<I>
impl<I: PartialOrd + Ip> PartialOrd for InstalledRoute<I>
source§fn partial_cmp(&self, other: &InstalledRoute<I>) -> Option<Ordering>
fn partial_cmp(&self, other: &InstalledRoute<I>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<InstalledRoute<Ipv4>> for InstalledRouteV4
impl TryFrom<InstalledRoute<Ipv4>> for InstalledRouteV4
§type Error = NetTypeConversionError
type Error = NetTypeConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<InstalledRoute<Ipv6>> for InstalledRouteV6
impl TryFrom<InstalledRoute<Ipv6>> for InstalledRouteV6
§type Error = NetTypeConversionError
type Error = NetTypeConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<InstalledRouteV4> for InstalledRoute<Ipv4>
impl TryFrom<InstalledRouteV4> for InstalledRoute<Ipv4>
§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>
§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> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
source§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> 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.