pub struct ReplyDetails { /* private fields */ }
Expand description
Reply details data.
Part of ReplyMessage
logic, containing data about on which message id
this replies and its status code.
Implementations§
Source§impl ReplyDetails
impl ReplyDetails
Sourcepub fn to_message_id(&self) -> MessageId
pub fn to_message_id(&self) -> MessageId
Returns message id replied to.
Sourcepub fn to_reply_code(&self) -> ReplyCode
pub fn to_reply_code(&self) -> ReplyCode
Returns reply code of reply details.
Sourcepub fn into_parts(self) -> (MessageId, ReplyCode)
pub fn into_parts(self) -> (MessageId, ReplyCode)
Destructs details into parts.
Trait Implementations§
Source§impl Clone for ReplyDetails
impl Clone for ReplyDetails
Source§fn clone(&self) -> ReplyDetails
fn clone(&self) -> ReplyDetails
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 ReplyDetails
impl Debug for ReplyDetails
Source§impl Decode for ReplyDetails
impl Decode for ReplyDetails
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Default for ReplyDetails
impl Default for ReplyDetails
Source§fn default() -> ReplyDetails
fn default() -> ReplyDetails
Returns the “default value” for a type. Read more
Source§impl Encode for ReplyDetails
impl Encode for ReplyDetails
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<ReplyDetails> for MessageDetails
impl From<ReplyDetails> for MessageDetails
Source§fn from(original: ReplyDetails) -> MessageDetails
fn from(original: ReplyDetails) -> MessageDetails
Converts to this type from the input type.
Source§impl Hash for ReplyDetails
impl Hash for ReplyDetails
Source§impl Ord for ReplyDetails
impl Ord for ReplyDetails
Source§fn cmp(&self, other: &ReplyDetails) -> Ordering
fn cmp(&self, other: &ReplyDetails) -> 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 ReplyDetails
impl PartialEq for ReplyDetails
Source§impl PartialOrd for ReplyDetails
impl PartialOrd for ReplyDetails
Source§impl TypeInfo for ReplyDetails
impl TypeInfo for ReplyDetails
impl Copy for ReplyDetails
impl EncodeLike for ReplyDetails
impl Eq for ReplyDetails
impl StructuralPartialEq for ReplyDetails
Auto Trait Implementations§
impl Freeze for ReplyDetails
impl RefUnwindSafe for ReplyDetails
impl Send for ReplyDetails
impl Sync for ReplyDetails
impl Unpin for ReplyDetails
impl UnwindSafe for ReplyDetails
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