pub struct TMessageIdentifier {
pub name: String,
pub message_type: TMessageType,
pub sequence_number: u32,
}
Expand description
Thrift message identifier.
Fields§
§name: String
Service call the message is associated with.
message_type: TMessageType
Message type.
sequence_number: u32
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: u32,
) -> TMessageIdentifier
pub fn new<S: Into<String>>( name: S, message_type: TMessageType, sequence_number: u32, ) -> 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)