pub struct MessageRef<'a>(/* private fields */);
Expand description
Reference to a deserialized Message.
Implementations§
Source§impl<'a> MessageRef<'a>
impl<'a> MessageRef<'a>
Sourcepub fn data(&self) -> Result<BodyRef<'a>>
pub fn data(&self) -> Result<BodyRef<'a>>
Getter for the data
field.
Trait Implementations§
Source§impl<'a> Clone for MessageRef<'a>
impl<'a> Clone for MessageRef<'a>
Source§fn clone(&self) -> MessageRef<'a>
fn clone(&self) -> MessageRef<'a>
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<'a> Debug for MessageRef<'a>
impl<'a> Debug for MessageRef<'a>
Source§impl<'a> ReadAsRoot<'a> for MessageRef<'a>
impl<'a> ReadAsRoot<'a> for MessageRef<'a>
Source§impl<'a> TryFrom<MessageRef<'a>> for Message
impl<'a> TryFrom<MessageRef<'a>> for Message
impl<'a> Copy for MessageRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessageRef<'a>
impl<'a> RefUnwindSafe for MessageRef<'a>
impl<'a> Send for MessageRef<'a>
impl<'a> Sync for MessageRef<'a>
impl<'a> Unpin for MessageRef<'a>
impl<'a> UnwindSafe for MessageRef<'a>
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