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: PartialOrd + Ip> PartialOrd for RouteAction<I>
impl<I: PartialOrd + Ip> PartialOrd for RouteAction<I>
Source§impl TryFrom<RouteAction<Ipv4>> for RouteActionV4
impl TryFrom<RouteAction<Ipv4>> for RouteActionV4
Source§impl TryFrom<RouteAction<Ipv6>> for RouteActionV6
impl TryFrom<RouteAction<Ipv6>> for RouteActionV6
Source§impl TryFrom<RouteActionV4> for RouteAction<Ipv4>
impl TryFrom<RouteActionV4> for RouteAction<Ipv4>
Source§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>
Source§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> 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.