pub struct Body {
data: Data<'static, 'static>,
msg: Message,
}Expand description
The body of a message.
This contains the bytes and the signature of the body.
Fields§
§data: Data<'static, 'static>§msg: MessageImplementations§
Source§impl Body
impl Body
pub(super) fn new(data: Data<'static, 'static>, msg: Message) -> Self
Sourcepub fn deserialize<'s, B>(&'s self) -> Result<B>where
B: DynamicDeserialize<'s>,
pub fn deserialize<'s, B>(&'s self) -> Result<B>where
B: DynamicDeserialize<'s>,
Deserialize the body using the contained signature.
Sourcepub fn deserialize_unchecked<'d, 'm: 'd, B>(&'m self) -> Result<B>where
B: Deserialize<'d> + Type,
pub fn deserialize_unchecked<'d, 'm: 'd, B>(&'m self) -> Result<B>where
B: Deserialize<'d> + Type,
Deserialize the body (without checking signature matching).
Trait Implementations§
Source§impl<'s> TryFrom<&'s Body> for InterfacesAddedArgs<'s>
impl<'s> TryFrom<&'s Body> for InterfacesAddedArgs<'s>
Source§impl<'s> TryFrom<&'s Body> for InterfacesRemovedArgs<'s>
impl<'s> TryFrom<&'s Body> for InterfacesRemovedArgs<'s>
Source§impl<'s> TryFrom<&'s Body> for NameAcquiredArgs<'s>
impl<'s> TryFrom<&'s Body> for NameAcquiredArgs<'s>
Source§impl<'s> TryFrom<&'s Body> for NameLostArgs<'s>
impl<'s> TryFrom<&'s Body> for NameLostArgs<'s>
Source§impl<'s> TryFrom<&'s Body> for NameOwnerChangedArgs<'s>
impl<'s> TryFrom<&'s Body> for NameOwnerChangedArgs<'s>
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnsafeUnpin for Body
impl UnwindSafe for Body
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