pub struct AckMessage;
Expand description
A type representing an acknowledgement message.
This type is useful for quickly writing out reset responses via the
write_msg_to
method.
Trait Implementations§
Source§impl Clone for AckMessage
impl Clone for AckMessage
Source§fn clone(&self) -> AckMessage
fn clone(&self) -> AckMessage
Returns a duplicate 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 AckMessage
impl Debug for AckMessage
Source§impl Display for AckMessage
impl Display for AckMessage
Source§impl MessageRead for AckMessage
impl MessageRead for AckMessage
Source§fn content_format(&self) -> Option<ContentFormat>
fn content_format(&self) -> Option<ContentFormat>
Indicates the content format of the payload, if specified.
Source§fn accept(&self) -> Option<ContentFormat>
fn accept(&self) -> Option<ContentFormat>
Indicates the content format that the sender of the message will accept
for the payload of the response, if specified.
Source§fn block2(&self) -> Option<BlockInfo>
fn block2(&self) -> Option<BlockInfo>
Returns the value of the
block2
option for this message, if any.Source§fn block1(&self) -> Option<BlockInfo>
fn block1(&self) -> Option<BlockInfo>
Returns the value of the
block1
option for this message, if any.Source§fn options(&self) -> OptionIterator<'_> ⓘ
fn options(&self) -> OptionIterator<'_> ⓘ
Gets an iterator for processing the options of the message.
Source§fn write_msg_to(&self, target: &mut dyn MessageWrite) -> Result<(), Error>
fn write_msg_to(&self, target: &mut dyn MessageWrite) -> Result<(), Error>
Source§fn payload_as_str(&self) -> Option<&str>
fn payload_as_str(&self) -> Option<&str>
Gets the payload as a string slice.
Source§impl PartialEq for AckMessage
impl PartialEq for AckMessage
impl Copy for AckMessage
impl Eq for AckMessage
impl StructuralPartialEq for AckMessage
Auto Trait Implementations§
impl Freeze for AckMessage
impl RefUnwindSafe for AckMessage
impl Send for AckMessage
impl Sync for AckMessage
impl Unpin for AckMessage
impl UnwindSafe for AckMessage
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