Enum google_api_proto::google::cloud::networkmanagement::v1::step::State
source · #[repr(i32)]pub enum State {
Show 31 variants
Unspecified = 0,
StartFromInstance = 1,
StartFromInternet = 2,
StartFromGoogleService = 27,
StartFromPrivateNetwork = 3,
StartFromGkeMaster = 21,
StartFromCloudSqlInstance = 22,
StartFromCloudFunction = 23,
StartFromAppEngineVersion = 25,
StartFromCloudRunRevision = 26,
StartFromStorageBucket = 29,
StartFromPscPublishedService = 30,
ApplyIngressFirewallRule = 4,
ApplyEgressFirewallRule = 5,
ApplyRoute = 6,
ApplyForwardingRule = 7,
AnalyzeLoadBalancerBackend = 28,
SpoofingApproved = 8,
ArriveAtInstance = 9,
ArriveAtInternalLoadBalancer = 10,
ArriveAtExternalLoadBalancer = 11,
ArriveAtVpnGateway = 12,
ArriveAtVpnTunnel = 13,
ArriveAtVpcConnector = 24,
Nat = 14,
ProxyConnection = 15,
Deliver = 16,
Drop = 17,
Forward = 18,
Abort = 19,
ViewerPermissionMissing = 20,
}
Expand description
Type of states that are defined in the network state machine. Each step in the packet trace is in a specific state.
Variants§
Unspecified = 0
Unspecified state.
StartFromInstance = 1
Initial state: packet originating from a Compute Engine instance. An InstanceInfo is populated with starting instance information.
StartFromInternet = 2
Initial state: packet originating from the internet. The endpoint information is populated.
StartFromGoogleService = 27
Initial state: packet originating from a Google service. The google_service information is populated.
StartFromPrivateNetwork = 3
Initial state: packet originating from a VPC or on-premises network with internal source IP. If the source is a VPC network visible to the user, a NetworkInfo is populated with details of the network.
StartFromGkeMaster = 21
Initial state: packet originating from a Google Kubernetes Engine cluster master. A GKEMasterInfo is populated with starting instance information.
StartFromCloudSqlInstance = 22
Initial state: packet originating from a Cloud SQL instance. A CloudSQLInstanceInfo is populated with starting instance information.
StartFromCloudFunction = 23
Initial state: packet originating from a Cloud Function. A CloudFunctionInfo is populated with starting function information.
StartFromAppEngineVersion = 25
Initial state: packet originating from an App Engine service version. An AppEngineVersionInfo is populated with starting version information.
StartFromCloudRunRevision = 26
Initial state: packet originating from a Cloud Run revision. A CloudRunRevisionInfo is populated with starting revision information.
StartFromStorageBucket = 29
Initial state: packet originating from a Storage Bucket. Used only for return traces. The storage_bucket information is populated.
StartFromPscPublishedService = 30
Initial state: packet originating from a published service that uses Private Service Connect. Used only for return traces.
ApplyIngressFirewallRule = 4
Config checking state: verify ingress firewall rule.
ApplyEgressFirewallRule = 5
Config checking state: verify egress firewall rule.
ApplyRoute = 6
Config checking state: verify route.
ApplyForwardingRule = 7
Config checking state: match forwarding rule.
AnalyzeLoadBalancerBackend = 28
Config checking state: verify load balancer backend configuration.
SpoofingApproved = 8
Config checking state: packet sent or received under foreign IP address and allowed.
ArriveAtInstance = 9
Forwarding state: arriving at a Compute Engine instance.
ArriveAtInternalLoadBalancer = 10
Forwarding state: arriving at a Compute Engine internal load balancer.
ArriveAtExternalLoadBalancer = 11
Forwarding state: arriving at a Compute Engine external load balancer.
ArriveAtVpnGateway = 12
Forwarding state: arriving at a Cloud VPN gateway.
ArriveAtVpnTunnel = 13
Forwarding state: arriving at a Cloud VPN tunnel.
ArriveAtVpcConnector = 24
Forwarding state: arriving at a VPC connector.
Nat = 14
Transition state: packet header translated.
ProxyConnection = 15
Transition state: original connection is terminated and a new proxied connection is initiated.
Deliver = 16
Final state: packet could be delivered.
Drop = 17
Final state: packet could be dropped.
Forward = 18
Final state: packet could be forwarded to a network with an unknown configuration.
Abort = 19
Final state: analysis is aborted.
ViewerPermissionMissing = 20
Special state: viewer of the test result does not have permission to see the configuration in this step.
Implementations§
source§impl State
impl State
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 Ord for State
impl Ord for State
source§impl PartialEq for State
impl PartialEq for State
source§impl PartialOrd for State
impl PartialOrd for State
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 State
impl TryFrom<i32> for State
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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