#[repr(i32)]
pub enum Cause {
Show 60 variants Unspecified = 0, UnknownExternalAddress = 1, ForeignIpDisallowed = 2, FirewallRule = 3, NoRoute = 4, RouteBlackhole = 5, RouteWrongNetwork = 6, RouteNextHopIpAddressNotResolved = 42, RouteNextHopResourceNotFound = 43, RouteNextHopInstanceWrongNetwork = 49, RouteNextHopInstanceNonPrimaryIp = 50, RouteNextHopForwardingRuleIpMismatch = 51, RouteNextHopVpnTunnelNotEstablished = 52, RouteNextHopForwardingRuleTypeInvalid = 53, NoRouteFromInternetToPrivateIpv6Address = 44, VpnTunnelLocalSelectorMismatch = 45, VpnTunnelRemoteSelectorMismatch = 46, PrivateTrafficToInternet = 7, PrivateGoogleAccessDisallowed = 8, PrivateGoogleAccessViaVpnTunnelUnsupported = 47, NoExternalAddress = 9, UnknownInternalAddress = 10, ForwardingRuleMismatch = 11, ForwardingRuleNoInstances = 12, FirewallBlockingLoadBalancerBackendHealthCheck = 13, InstanceNotRunning = 14, GkeClusterNotRunning = 27, CloudSqlInstanceNotRunning = 28, TrafficTypeBlocked = 15, GkeMasterUnauthorizedAccess = 16, CloudSqlInstanceUnauthorizedAccess = 17, DroppedInsideGkeService = 18, DroppedInsideCloudSqlService = 19, GoogleManagedServiceNoPeering = 20, GoogleManagedServiceNoPscEndpoint = 38, GkePscEndpointMissing = 36, CloudSqlInstanceNoIpAddress = 21, GkeControlPlaneRegionMismatch = 30, PublicGkeControlPlaneToPrivateDestination = 31, GkeControlPlaneNoRoute = 32, CloudSqlInstanceNotConfiguredForExternalTraffic = 33, PublicCloudSqlInstanceToPrivateDestination = 34, CloudSqlInstanceNoRoute = 35, CloudFunctionNotActive = 22, VpcConnectorNotSet = 23, VpcConnectorNotRunning = 24, ForwardingRuleRegionMismatch = 25, PscConnectionNotAccepted = 26, PscEndpointAccessedFromPeeredNetwork = 41, PscNegProducerEndpointNoGlobalAccess = 48, PscNegProducerForwardingRuleMultiplePorts = 54, CloudSqlPscNegUnsupported = 58, NoNatSubnetsForPscServiceAttachment = 57, HybridNegNonDynamicRouteMatched = 55, HybridNegNonLocalDynamicRouteMatched = 56, CloudRunRevisionNotReady = 29, DroppedInsidePscServiceProducer = 37, LoadBalancerHasNoProxySubnet = 39, CloudNatNoAddresses = 40, RoutingLoop = 59,
}
Expand description

Drop cause types:

Variants§

§

Unspecified = 0

Cause is unspecified.

§

UnknownExternalAddress = 1

Destination external address cannot be resolved to a known target. If the address is used in a Google Cloud project, provide the project ID as test input.

§

ForeignIpDisallowed = 2

A Compute Engine instance can only send or receive a packet with a foreign IP address if ip_forward is enabled.

§

FirewallRule = 3

Dropped due to a firewall rule, unless allowed due to connection tracking.

§

NoRoute = 4

Dropped due to no matching routes.

§

RouteBlackhole = 5

Dropped due to invalid route. Route’s next hop is a blackhole.

§

RouteWrongNetwork = 6

Packet is sent to a wrong (unintended) network. Example: you trace a packet from VM1:Network1 to VM2:Network2, however, the route configured in Network1 sends the packet destined for VM2’s IP address to Network3.

§

RouteNextHopIpAddressNotResolved = 42

Route’s next hop IP address cannot be resolved to a GCP resource.

§

RouteNextHopResourceNotFound = 43

Route’s next hop resource is not found.

§

RouteNextHopInstanceWrongNetwork = 49

Route’s next hop instance doesn’t have a NIC in the route’s network.

§

RouteNextHopInstanceNonPrimaryIp = 50

Route’s next hop IP address is not a primary IP address of the next hop instance.

§

RouteNextHopForwardingRuleIpMismatch = 51

Route’s next hop forwarding rule doesn’t match next hop IP address.

§

RouteNextHopVpnTunnelNotEstablished = 52

Route’s next hop VPN tunnel is down (does not have valid IKE SAs).

§

RouteNextHopForwardingRuleTypeInvalid = 53

Route’s next hop forwarding rule type is invalid (it’s not a forwarding rule of the internal passthrough load balancer).

§

NoRouteFromInternetToPrivateIpv6Address = 44

Packet is sent from the Internet to the private IPv6 address.

§

VpnTunnelLocalSelectorMismatch = 45

The packet does not match a policy-based VPN tunnel local selector.

§

VpnTunnelRemoteSelectorMismatch = 46

The packet does not match a policy-based VPN tunnel remote selector.

§

PrivateTrafficToInternet = 7

Packet with internal destination address sent to the internet gateway.

§

PrivateGoogleAccessDisallowed = 8

Instance with only an internal IP address tries to access Google API and services, but private Google access is not enabled in the subnet.

§

PrivateGoogleAccessViaVpnTunnelUnsupported = 47

Source endpoint tries to access Google API and services through the VPN tunnel to another network, but Private Google Access needs to be enabled in the source endpoint network.

§

NoExternalAddress = 9

Instance with only an internal IP address tries to access external hosts, but Cloud NAT is not enabled in the subnet, unless special configurations on a VM allow this connection.

§

UnknownInternalAddress = 10

Destination internal address cannot be resolved to a known target. If this is a shared VPC scenario, verify if the service project ID is provided as test input. Otherwise, verify if the IP address is being used in the project.

§

ForwardingRuleMismatch = 11

Forwarding rule’s protocol and ports do not match the packet header.

§

ForwardingRuleNoInstances = 12

Forwarding rule does not have backends configured.

§

FirewallBlockingLoadBalancerBackendHealthCheck = 13

Firewalls block the health check probes to the backends and cause the backends to be unavailable for traffic from the load balancer. For more details, see Health check firewall rules.

§

InstanceNotRunning = 14

Packet is sent from or to a Compute Engine instance that is not in a running state.

§

GkeClusterNotRunning = 27

Packet sent from or to a GKE cluster that is not in running state.

§

CloudSqlInstanceNotRunning = 28

Packet sent from or to a Cloud SQL instance that is not in running state.

§

TrafficTypeBlocked = 15

The type of traffic is blocked and the user cannot configure a firewall rule to enable it. See Always blocked traffic for more details.

§

GkeMasterUnauthorizedAccess = 16

Access to Google Kubernetes Engine cluster master’s endpoint is not authorized. See Access to the cluster endpoints for more details.

§

CloudSqlInstanceUnauthorizedAccess = 17

Access to the Cloud SQL instance endpoint is not authorized. See Authorizing with authorized networks for more details.

§

DroppedInsideGkeService = 18

Packet was dropped inside Google Kubernetes Engine Service.

§

DroppedInsideCloudSqlService = 19

Packet was dropped inside Cloud SQL Service.

§

GoogleManagedServiceNoPeering = 20

Packet was dropped because there is no peering between the originating network and the Google Managed Services Network.

§

GoogleManagedServiceNoPscEndpoint = 38

Packet was dropped because the Google-managed service uses Private Service Connect (PSC), but the PSC endpoint is not found in the project.

§

GkePscEndpointMissing = 36

Packet was dropped because the GKE cluster uses Private Service Connect (PSC), but the PSC endpoint is not found in the project.

§

CloudSqlInstanceNoIpAddress = 21

Packet was dropped because the Cloud SQL instance has neither a private nor a public IP address.

§

GkeControlPlaneRegionMismatch = 30

Packet was dropped because a GKE cluster private endpoint is unreachable from a region different from the cluster’s region.

§

PublicGkeControlPlaneToPrivateDestination = 31

Packet sent from a public GKE cluster control plane to a private IP address.

§

GkeControlPlaneNoRoute = 32

Packet was dropped because there is no route from a GKE cluster control plane to a destination network.

§

CloudSqlInstanceNotConfiguredForExternalTraffic = 33

Packet sent from a Cloud SQL instance to an external IP address is not allowed. The Cloud SQL instance is not configured to send packets to external IP addresses.

§

PublicCloudSqlInstanceToPrivateDestination = 34

Packet sent from a Cloud SQL instance with only a public IP address to a private IP address.

§

CloudSqlInstanceNoRoute = 35

Packet was dropped because there is no route from a Cloud SQL instance to a destination network.

§

CloudFunctionNotActive = 22

Packet could be dropped because the Cloud Function is not in an active status.

§

VpcConnectorNotSet = 23

Packet could be dropped because no VPC connector is set.

§

VpcConnectorNotRunning = 24

Packet could be dropped because the VPC connector is not in a running state.

§

ForwardingRuleRegionMismatch = 25

Packet could be dropped because it was sent from a different region to a regional forwarding without global access.

§

PscConnectionNotAccepted = 26

The Private Service Connect endpoint is in a project that is not approved to connect to the service.

§

PscEndpointAccessedFromPeeredNetwork = 41

The packet is sent to the Private Service Connect endpoint over the peering, but it’s not supported.

§

PscNegProducerEndpointNoGlobalAccess = 48

The packet is sent to the Private Service Connect backend (network endpoint group), but the producer PSC forwarding rule does not have global access enabled.

§

PscNegProducerForwardingRuleMultiplePorts = 54

The packet is sent to the Private Service Connect backend (network endpoint group), but the producer PSC forwarding rule has multiple ports specified.

§

CloudSqlPscNegUnsupported = 58

The packet is sent to the Private Service Connect backend (network endpoint group) targeting a Cloud SQL service attachment, but this configuration is not supported.

§

NoNatSubnetsForPscServiceAttachment = 57

No NAT subnets are defined for the PSC service attachment.

§

HybridNegNonDynamicRouteMatched = 55

The packet sent from the hybrid NEG proxy matches a non-dynamic route, but such a configuration is not supported.

§

HybridNegNonLocalDynamicRouteMatched = 56

The packet sent from the hybrid NEG proxy matches a dynamic route with a next hop in a different region, but such a configuration is not supported.

§

CloudRunRevisionNotReady = 29

Packet sent from a Cloud Run revision that is not ready.

§

DroppedInsidePscServiceProducer = 37

Packet was dropped inside Private Service Connect service producer.

§

LoadBalancerHasNoProxySubnet = 39

Packet sent to a load balancer, which requires a proxy-only subnet and the subnet is not found.

§

CloudNatNoAddresses = 40

Packet sent to Cloud Nat without active NAT IPs.

§

RoutingLoop = 59

Packet is stuck in a routing loop.

Implementations§

source§

impl Cause

source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of Cause.

source

pub fn from_i32(value: i32) -> Option<Cause>

👎Deprecated: Use the TryFrom<i32> implementation instead

Converts an i32 to a Cause, or None if value is not a valid variant.

source§

impl Cause

source

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.

source

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 Cause

source§

fn clone(&self) -> Cause

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Cause

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Cause

source§

fn default() -> Cause

Returns the “default value” for a type. Read more
source§

impl From<Cause> for i32

source§

fn from(value: Cause) -> i32

Converts to this type from the input type.
source§

impl Hash for Cause

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Cause

source§

fn cmp(&self, other: &Cause) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Cause

source§

fn eq(&self, other: &Cause) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Cause

source§

fn partial_cmp(&self, other: &Cause) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<i32> for Cause

§

type Error = DecodeError

The type returned in the event of a conversion error.
source§

fn try_from(value: i32) -> Result<Cause, DecodeError>

Performs the conversion.
source§

impl Copy for Cause

source§

impl Eq for Cause

source§

impl StructuralPartialEq for Cause

Auto Trait Implementations§

§

impl Freeze for Cause

§

impl RefUnwindSafe for Cause

§

impl Send for Cause

§

impl Sync for Cause

§

impl Unpin for Cause

§

impl UnwindSafe for Cause

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more