Struct fidl_fuchsia_net_routes_ext::Route
source · pub struct Route<I: Ip> {
pub destination: Subnet<I::Addr>,
pub action: RouteAction<I>,
pub properties: RouteProperties,
}
Expand description
A route, abstracting over fnet_routes::RouteV4
and
fnet_routes::RouteV6
.
The destination
subnet is verified to be a valid subnet; e.g. its
prefix-len is a valid value, and its host bits are cleared.
Fields§
§destination: Subnet<I::Addr>
The destination subnet of the route.
action: RouteAction<I>
The action specifying how to handle packets matching this route.
properties: RouteProperties
The additional properties of the route.
Trait Implementations§
source§impl<I: Ord + Ip> Ord for Route<I>
impl<I: Ord + Ip> Ord for Route<I>
source§impl<I: PartialEq + Ip> PartialEq for Route<I>
impl<I: PartialEq + Ip> PartialEq for Route<I>
source§impl<I: PartialOrd + Ip> PartialOrd for Route<I>where
I::Addr: PartialOrd,
impl<I: PartialOrd + Ip> PartialOrd for Route<I>where
I::Addr: PartialOrd,
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<RouteV4> for Route<Ipv4>
impl TryFrom<RouteV4> for Route<Ipv4>
§type Error = FidlConversionError<RoutePropertiesRequiredFields>
type Error = FidlConversionError<RoutePropertiesRequiredFields>
The type returned in the event of a conversion error.
source§impl TryFrom<RouteV6> for Route<Ipv6>
impl TryFrom<RouteV6> for Route<Ipv6>
§type Error = FidlConversionError<RoutePropertiesRequiredFields>
type Error = FidlConversionError<RoutePropertiesRequiredFields>
The type returned in the event of a conversion error.
impl<I: Copy + Ip> Copy for Route<I>
impl<I: Eq + Ip> Eq for Route<I>
impl<I: Ip> StructuralPartialEq for Route<I>
Auto Trait Implementations§
impl<I> Freeze for Route<I>
impl<I> RefUnwindSafe for Route<I>
impl<I> Send for Route<I>
impl<I> Sync for Route<I>
impl<I> Unpin for Route<I>
impl<I> UnwindSafe for Route<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.