pub struct rsm_message_t { /* private fields */ }Expand description
message object
Implementations§
Source§impl rsm_message_t
impl rsm_message_t
pub fn new<'de, T>(msg_id: rsm_message_id_t, body: &T) -> Option<rsm_message_t>
Sourcepub fn decode<'a, T>(&'a self) -> Option<T>where
T: Deserialize<'a>,
pub fn decode<'a, T>(&'a self) -> Option<T>where
T: Deserialize<'a>,
on the receiving side, using decode to restore the original data format
Trait Implementations§
Source§impl Clone for rsm_message_t
impl Clone for rsm_message_t
Source§fn clone(&self) -> rsm_message_t
fn clone(&self) -> rsm_message_t
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for rsm_message_t
impl RefUnwindSafe for rsm_message_t
impl Send for rsm_message_t
impl Sync for rsm_message_t
impl Unpin for rsm_message_t
impl UnwindSafe for rsm_message_t
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