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 moresource§impl Debug for TMessageIdentifier
impl Debug for TMessageIdentifier
source§impl PartialEq for TMessageIdentifier
impl PartialEq for TMessageIdentifier
impl Eq for TMessageIdentifier
impl StructuralPartialEq for TMessageIdentifier
Auto Trait Implementations§
impl Freeze for TMessageIdentifier
impl RefUnwindSafe for TMessageIdentifier
impl Send for TMessageIdentifier
impl Sync for TMessageIdentifier
impl Unpin for TMessageIdentifier
impl UnwindSafe for TMessageIdentifier
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)