pub struct Message<'m> {
pub method: &'m str,
pub arg: Cow<'m, [u8]>,
}Expand description
A wasmcloud message
Fields§
§method: &'m strMessage name, usually in the form ‘Trait.method’
arg: Cow<'m, [u8]>parameter serialized as a byte array. If the method takes no args, the array will be zero length.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Message<'m>
impl<'m> RefUnwindSafe for Message<'m>
impl<'m> Send for Message<'m>
impl<'m> Sync for Message<'m>
impl<'m> Unpin for Message<'m>
impl<'m> UnwindSafe for Message<'m>
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