pub struct NullMessageRead;
Expand description
Null message reader. Always reads as an empty CoAP reset.
Trait Implementations§
Source§impl Debug for NullMessageRead
impl Debug for NullMessageRead
Source§impl Display for NullMessageRead
impl Display for NullMessageRead
Source§impl MessageRead for NullMessageRead
impl MessageRead for NullMessageRead
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.
Auto Trait Implementations§
impl Freeze for NullMessageRead
impl RefUnwindSafe for NullMessageRead
impl Send for NullMessageRead
impl Sync for NullMessageRead
impl Unpin for NullMessageRead
impl UnwindSafe for NullMessageRead
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