Enum google_api_proto::google::cloud::networkmanagement::v1::route_info::NextHopType
source · #[repr(i32)]pub enum NextHopType {
Show 13 variants
Unspecified = 0,
NextHopIp = 1,
NextHopInstance = 2,
NextHopNetwork = 3,
NextHopPeering = 4,
NextHopInterconnect = 5,
NextHopVpnTunnel = 6,
NextHopVpnGateway = 7,
NextHopInternetGateway = 8,
NextHopBlackhole = 9,
NextHopIlb = 10,
NextHopRouterAppliance = 11,
NextHopNccHub = 12,
}
Expand description
Type of next hop:
Variants§
Unspecified = 0
Unspecified type. Default value.
NextHopIp = 1
Next hop is an IP address.
NextHopInstance = 2
Next hop is a Compute Engine instance.
NextHopNetwork = 3
Next hop is a VPC network gateway.
NextHopPeering = 4
Next hop is a peering VPC.
NextHopInterconnect = 5
Next hop is an interconnect.
NextHopVpnTunnel = 6
Next hop is a VPN tunnel.
NextHopVpnGateway = 7
Next hop is a VPN gateway. This scenario only happens when tracing connectivity from an on-premises network to Google Cloud through a VPN. The analysis simulates a packet departing from the on-premises network through a VPN tunnel and arriving at a Cloud VPN gateway.
NextHopInternetGateway = 8
Next hop is an internet gateway.
NextHopBlackhole = 9
Next hop is blackhole; that is, the next hop either does not exist or is not running.
NextHopIlb = 10
Next hop is the forwarding rule of an Internal Load Balancer.
NextHopRouterAppliance = 11
Next hop is a router appliance instance.
NextHopNccHub = 12
Next hop is an NCC hub.
Implementations§
source§impl NextHopType
impl NextHopType
source§impl NextHopType
impl NextHopType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for NextHopType
impl Clone for NextHopType
source§fn clone(&self) -> NextHopType
fn clone(&self) -> NextHopType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NextHopType
impl Debug for NextHopType
source§impl Default for NextHopType
impl Default for NextHopType
source§fn default() -> NextHopType
fn default() -> NextHopType
source§impl From<NextHopType> for i32
impl From<NextHopType> for i32
source§fn from(value: NextHopType) -> i32
fn from(value: NextHopType) -> i32
source§impl Hash for NextHopType
impl Hash for NextHopType
source§impl Ord for NextHopType
impl Ord for NextHopType
source§fn cmp(&self, other: &NextHopType) -> Ordering
fn cmp(&self, other: &NextHopType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for NextHopType
impl PartialEq for NextHopType
source§fn eq(&self, other: &NextHopType) -> bool
fn eq(&self, other: &NextHopType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NextHopType
impl PartialOrd for NextHopType
source§fn partial_cmp(&self, other: &NextHopType) -> Option<Ordering>
fn partial_cmp(&self, other: &NextHopType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for NextHopType
impl TryFrom<i32> for NextHopType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<NextHopType, DecodeError>
fn try_from(value: i32) -> Result<NextHopType, DecodeError>
impl Copy for NextHopType
impl Eq for NextHopType
impl StructuralPartialEq for NextHopType
Auto Trait Implementations§
impl Freeze for NextHopType
impl RefUnwindSafe for NextHopType
impl Send for NextHopType
impl Sync for NextHopType
impl Unpin for NextHopType
impl UnwindSafe for NextHopType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request