Enum google_api_proto::google::privacy::dlp::v2::ConnectionState
source · #[repr(i32)]pub enum ConnectionState {
Unspecified = 0,
MissingCredentials = 1,
Available = 2,
Error = 3,
}
Expand description
State of the connection. New values may be added over time.
Variants§
Unspecified = 0
Unused
MissingCredentials = 1
DLP automatically created this connection during an initial scan, and it is awaiting full configuration by a user.
Available = 2
A configured connection that has not encountered any errors.
Error = 3
A configured connection that encountered errors during its last use. It will not be used again until it is set to AVAILABLE.
If the resolution requires external action, then the client must send a request to set the status to AVAILABLE when the connection is ready for use. If the resolution doesn’t require external action, then any changes to the connection properties will automatically mark it as AVAILABLE.
Implementations§
source§impl ConnectionState
impl ConnectionState
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 ConnectionState
impl Clone for ConnectionState
source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectionState
impl Debug for ConnectionState
source§impl Default for ConnectionState
impl Default for ConnectionState
source§fn default() -> ConnectionState
fn default() -> ConnectionState
source§impl From<ConnectionState> for i32
impl From<ConnectionState> for i32
source§fn from(value: ConnectionState) -> i32
fn from(value: ConnectionState) -> i32
source§impl Hash for ConnectionState
impl Hash for ConnectionState
source§impl Ord for ConnectionState
impl Ord for ConnectionState
source§fn cmp(&self, other: &ConnectionState) -> Ordering
fn cmp(&self, other: &ConnectionState) -> 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 ConnectionState
impl PartialEq for ConnectionState
source§fn eq(&self, other: &ConnectionState) -> bool
fn eq(&self, other: &ConnectionState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConnectionState
impl PartialOrd for ConnectionState
source§fn partial_cmp(&self, other: &ConnectionState) -> Option<Ordering>
fn partial_cmp(&self, other: &ConnectionState) -> 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 ConnectionState
impl TryFrom<i32> for ConnectionState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ConnectionState, UnknownEnumValue>
fn try_from(value: i32) -> Result<ConnectionState, UnknownEnumValue>
impl Copy for ConnectionState
impl Eq for ConnectionState
impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
impl Freeze for ConnectionState
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnwindSafe for ConnectionState
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