pub enum RouteAction<I: Ip> {
Unknown,
Forward(RouteTarget<I>),
}
Expand description
The action of a route, abstracting over fnet_routes::RouteActionV4
and
fnet_routes::RouteActionV6
.
These fidl types are both defined as flexible unions, which allows the
definition to grow over time. The Unknown
enum variant accounts for any
new types that are not yet known to the local version of the FIDL bindings.
Variants§
Unknown
The RouteAction is unknown.
Forward(RouteTarget<I>)
Forward packets to the specified target.
Trait Implementations§
source§impl<I: Clone + Ip> Clone for RouteAction<I>
impl<I: Clone + Ip> Clone for RouteAction<I>
source§fn clone(&self) -> RouteAction<I>
fn clone(&self) -> RouteAction<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 RouteAction<I>
impl<I: Ord + Ip> Ord for RouteAction<I>
source§fn cmp(&self, other: &RouteAction<I>) -> Ordering
fn cmp(&self, other: &RouteAction<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 RouteAction<I>
impl<I: PartialEq + Ip> PartialEq for RouteAction<I>
source§fn eq(&self, other: &RouteAction<I>) -> bool
fn eq(&self, other: &RouteAction<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<I: PartialOrd + Ip> PartialOrd for RouteAction<I>
impl<I: PartialOrd + Ip> PartialOrd for RouteAction<I>
source§fn partial_cmp(&self, other: &RouteAction<I>) -> Option<Ordering>
fn partial_cmp(&self, other: &RouteAction<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<RouteAction<Ipv4>> for RouteActionV4
impl TryFrom<RouteAction<Ipv4>> for RouteActionV4
§type Error = NetTypeConversionError
type Error = NetTypeConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<RouteAction<Ipv6>> for RouteActionV6
impl TryFrom<RouteAction<Ipv6>> for RouteActionV6
§type Error = NetTypeConversionError
type Error = NetTypeConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<RouteActionV4> for RouteAction<Ipv4>
impl TryFrom<RouteActionV4> for RouteAction<Ipv4>
§type Error = FidlConversionError<NeverMissingFields>
type Error = FidlConversionError<NeverMissingFields>
The type returned in the event of a conversion error.
source§impl TryFrom<RouteActionV6> for RouteAction<Ipv6>
impl TryFrom<RouteActionV6> for RouteAction<Ipv6>
§type Error = FidlConversionError<NeverMissingFields>
type Error = FidlConversionError<NeverMissingFields>
The type returned in the event of a conversion error.
impl<I: Copy + Ip> Copy for RouteAction<I>
impl<I: Eq + Ip> Eq for RouteAction<I>
impl<I: Ip> StructuralPartialEq for RouteAction<I>
Auto Trait Implementations§
impl<I> Freeze for RouteAction<I>
impl<I> RefUnwindSafe for RouteAction<I>
impl<I> Send for RouteAction<I>
impl<I> Sync for RouteAction<I>
impl<I> Unpin for RouteAction<I>
impl<I> UnwindSafe for RouteAction<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.