Struct thrift::protocol::TMessageIdentifier
source · pub struct TMessageIdentifier {
pub name: String,
pub message_type: TMessageType,
pub sequence_number: i32,
}
Expand description
Thrift message identifier.
Fields§
§name: String
Service call the message is associated with.
message_type: TMessageType
Message type.
sequence_number: i32
Ordered sequence number identifying the message.
Implementations§
source§impl TMessageIdentifier
impl TMessageIdentifier
sourcepub fn new<S: Into<String>>(
name: S,
message_type: TMessageType,
sequence_number: i32
) -> TMessageIdentifier
pub fn new<S: Into<String>>(
name: S,
message_type: TMessageType,
sequence_number: i32
) -> TMessageIdentifier
Create a TMessageIdentifier
for a Thrift service-call named name
with message type message_type
and sequence number sequence_number
.
Trait Implementations§
source§impl Clone for TMessageIdentifier
impl Clone for TMessageIdentifier
source§fn clone(&self) -> TMessageIdentifier
fn clone(&self) -> TMessageIdentifier
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 more