Enum chirpstack_api::api::GatewayState
source · #[repr(i32)]
pub enum GatewayState {
NeverSeen,
Online,
Offline,
}
Variants§
Implementations§
source§impl GatewayState
impl GatewayState
source§impl GatewayState
impl GatewayState
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 GatewayState
impl Clone for GatewayState
source§fn clone(&self) -> GatewayState
fn clone(&self) -> GatewayState
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 Debug for GatewayState
impl Debug for GatewayState
source§impl Default for GatewayState
impl Default for GatewayState
source§fn default() -> GatewayState
fn default() -> GatewayState
Returns the “default value” for a type. Read more
source§impl From<GatewayState> for i32
impl From<GatewayState> for i32
source§fn from(value: GatewayState) -> i32
fn from(value: GatewayState) -> i32
Converts to this type from the input type.
source§impl Hash for GatewayState
impl Hash for GatewayState
source§impl Ord for GatewayState
impl Ord for GatewayState
source§fn cmp(&self, other: &GatewayState) -> Ordering
fn cmp(&self, other: &GatewayState) -> 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 PartialEq<GatewayState> for GatewayState
impl PartialEq<GatewayState> for GatewayState
source§fn eq(&self, other: &GatewayState) -> bool
fn eq(&self, other: &GatewayState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GatewayState> for GatewayState
impl PartialOrd<GatewayState> for GatewayState
source§fn partial_cmp(&self, other: &GatewayState) -> Option<Ordering>
fn partial_cmp(&self, other: &GatewayState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moreimpl Copy for GatewayState
impl Eq for GatewayState
impl StructuralEq for GatewayState
impl StructuralPartialEq for GatewayState
Auto Trait Implementations§
impl RefUnwindSafe for GatewayState
impl Send for GatewayState
impl Sync for GatewayState
impl Unpin for GatewayState
impl UnwindSafe for GatewayState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Wrap the input message
T
in a tonic::Request