pub struct BoxedPayload(/* private fields */);Expand description
Holds a MessageSpecifier::Payload
Implementations§
Source§impl BoxedPayload
impl BoxedPayload
pub fn new<T>( payload: <<T as Message>::Kind as MessageSpecifier<T>>::Payload, ) -> BoxedPayload
pub fn downcast<T>( self, ) -> Result<<<T as Message>::Kind as MessageSpecifier<T>>::Payload, BoxedPayload>
pub fn try_into_interface<T>(self) -> Result<T, BoxedPayload>where
T: Interface,
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BoxedPayload
impl !Sync for BoxedPayload
impl !UnwindSafe for BoxedPayload
impl Freeze for BoxedPayload
impl Send for BoxedPayload
impl Unpin for BoxedPayload
impl UnsafeUnpin for BoxedPayload
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