pub struct Body { /* private fields */ }
Expand description
The body of a message.
This contains the bytes and the signature of the body.
Implementations§
Source§impl Body
impl Body
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).
Sourcepub fn signature(&self) -> Option<Signature<'_>>
pub fn signature(&self) -> Option<Signature<'_>>
The signature of the body.
Note: While zbus treats multiple arguments as a struct (to allow you to use the tuple syntax), D-Bus does not. Since this method gives you the signature expected on the wire by D-Bus, the trailing and leading STRUCT signature parenthesis will not be present in case of multiple arguments.
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 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 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 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 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>
Source§impl<'s> TryFrom<&'s Body> for NameOwnerChangedArgs<'s>
impl<'s> TryFrom<&'s Body> for NameOwnerChangedArgs<'s>
Source§impl<'s> TryFrom<&'s Body> for PropertiesChangedArgs<'s>
impl<'s> TryFrom<&'s Body> for PropertiesChangedArgs<'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 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