pub struct ResetMessage;
Expand description
A type representing a reset message.
This type is useful for quickly writing out reset responses via the
write_msg_to
method.
Trait Implementations§
Source§impl Clone for ResetMessage
impl Clone for ResetMessage
Source§fn clone(&self) -> ResetMessage
fn clone(&self) -> ResetMessage
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 ResetMessage
impl Debug for ResetMessage
Source§impl Display for ResetMessage
impl Display for ResetMessage
Source§impl MessageRead for ResetMessage
impl MessageRead for ResetMessage
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 ResetMessage
impl PartialEq for ResetMessage
impl Copy for ResetMessage
impl Eq for ResetMessage
impl StructuralPartialEq for ResetMessage
Auto Trait Implementations§
impl Freeze for ResetMessage
impl RefUnwindSafe for ResetMessage
impl Send for ResetMessage
impl Sync for ResetMessage
impl Unpin for ResetMessage
impl UnwindSafe for ResetMessage
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