#[repr(i32)]pub enum MessageKind {
Show 17 variants
Unknown = 0,
RpcRequest = 10,
RpcResponse = 11,
RpcBatchRequest = 12,
RpcBatchResponse = 13,
HealthPull = 20,
HealthResponse = 21,
MetricsPush = 30,
MetricsAck = 31,
InterfaceRegister = 40,
InterfaceDeregister = 41,
RegistrationAck = 42,
HttpEndpointRegister = 50,
HttpEndpointDeregister = 51,
HttpRegistrationAck = 52,
MiddlewareRequest = 60,
MiddlewareResponse = 61,
}Expand description
Message type discriminator
Variants§
Unknown = 0
RpcRequest = 10
RPC messages
RpcResponse = 11
RpcBatchRequest = 12
RpcBatchResponse = 13
HealthPull = 20
Health push
HealthResponse = 21
MetricsPush = 30
Metrics
MetricsAck = 31
InterfaceRegister = 40
Interface registration
InterfaceDeregister = 41
RegistrationAck = 42
HttpEndpointRegister = 50
HTTP endpoint registration
HttpEndpointDeregister = 51
HttpRegistrationAck = 52
MiddlewareRequest = 60
HTTP middleware
MiddlewareResponse = 61
Implementations§
Source§impl MessageKind
impl MessageKind
Source§impl MessageKind
impl MessageKind
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<MessageKind>
pub fn from_str_name(value: &str) -> Option<MessageKind>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for MessageKind
impl Clone for MessageKind
Source§fn clone(&self) -> MessageKind
fn clone(&self) -> MessageKind
Returns a duplicate 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 MessageKind
impl Debug for MessageKind
Source§impl Default for MessageKind
impl Default for MessageKind
Source§fn default() -> MessageKind
fn default() -> MessageKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageKind
impl<'de> Deserialize<'de> for MessageKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MessageKind
impl Hash for MessageKind
Source§impl Ord for MessageKind
impl Ord for MessageKind
Source§fn cmp(&self, other: &MessageKind) -> Ordering
fn cmp(&self, other: &MessageKind) -> 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 for MessageKind
impl PartialEq for MessageKind
Source§impl PartialOrd for MessageKind
impl PartialOrd for MessageKind
Source§impl Serialize for MessageKind
impl Serialize for MessageKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<i32> for MessageKind
impl TryFrom<i32> for MessageKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<MessageKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<MessageKind, UnknownEnumValue>
Performs the conversion.
impl Copy for MessageKind
impl Eq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations§
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnsafeUnpin for MessageKind
impl UnwindSafe for MessageKind
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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§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
Compare self to
key and return true if they are equal.