#[repr(i32)]pub enum CorrelationKind {
None = 0,
Request = 1,
Response = 2,
}Expand description
Request/response correlation discriminator.
Variants§
None = 0
Fire-and-forget — no correlation header.
Request = 1
The envelope opens a new request. The wire_req_id is the
sender’s token; the receiver echoes it back inside a RESPONSE.
Response = 2
The envelope answers a prior REQUEST. The wire_req_id matches
the original request’s token.
Implementations§
Source§impl CorrelationKind
impl CorrelationKind
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<CorrelationKind>
pub fn from_str_name(value: &str) -> Option<CorrelationKind>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for CorrelationKind
impl Clone for CorrelationKind
Source§fn clone(&self) -> CorrelationKind
fn clone(&self) -> CorrelationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CorrelationKind
Source§impl Debug for CorrelationKind
impl Debug for CorrelationKind
Source§impl Default for CorrelationKind
impl Default for CorrelationKind
Source§fn default() -> CorrelationKind
fn default() -> CorrelationKind
Returns the “default value” for a type. Read more
impl Eq for CorrelationKind
Source§impl Hash for CorrelationKind
impl Hash for CorrelationKind
Source§impl Ord for CorrelationKind
impl Ord for CorrelationKind
Source§fn cmp(&self, other: &CorrelationKind) -> Ordering
fn cmp(&self, other: &CorrelationKind) -> Ordering
1.21.0 (const: unstable) · 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 CorrelationKind
impl PartialEq for CorrelationKind
Source§fn eq(&self, other: &CorrelationKind) -> bool
fn eq(&self, other: &CorrelationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CorrelationKind
impl PartialOrd for CorrelationKind
impl StructuralPartialEq for CorrelationKind
Source§impl TryFrom<i32> for CorrelationKind
impl TryFrom<i32> for CorrelationKind
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CorrelationKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<CorrelationKind, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CorrelationKind
impl RefUnwindSafe for CorrelationKind
impl Send for CorrelationKind
impl Sync for CorrelationKind
impl Unpin for CorrelationKind
impl UnsafeUnpin for CorrelationKind
impl UnwindSafe for CorrelationKind
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