pub fn encode_persistent<T: Encodable>(body: &mut T) -> Result<Vec<u8>> {
    let msg = &mut PersistentMessage { header: PersistentHeader::new(), body };
    let mut combined_bytes = Vec::<u8>::new();
    let mut handles = Vec::<HandleDisposition<'static>>::new();
    Encoder::encode(&mut combined_bytes, &mut handles, msg)?;
    debug_assert!(handles.is_empty(), "Persistent message contains handles");
    Ok(combined_bytes)
}
/// Encode the referred parameter into persistent binary form.
/// Generates and adds message header to the returned bytes.
Encode the referred parameter into persistent binary form.
Generates and adds message header to the returned bytes.
Encode the referred parameter into persistent binary form . Generates and adds message header to the returned bytes .
pub fn encode_persistent<T: Encodable>(body: &mut T) -> Result<Vec<u8>> {
    let msg = &mut PersistentMessage { header: PersistentHeader::new(), body };
    let mut combined_bytes = Vec::<u8>::new();
    let mut handles = Vec::<HandleDisposition<'static>>::new();
    Encoder::encode(&mut combined_bytes, &mut handles, msg)?;
    debug_assert!(handles.is_empty(), "Persistent message contains handles");
    Ok(combined_bytes)
}
pub fn encode_persistent < T : Encodable > ( body : & mut T ) -> Result < Vec < u8 > > { let msg = & mut PersistentMessage { header : PersistentHeader :: new ( ) , body } ; let mut combined_bytes = Vec :: < u8 > :: new ( ) ; let mut handles = Vec :: < HandleDisposition < ' static > > :: new ( ) ; Encoder :: encode ( & mut combined_bytes , & mut handles , msg ) ? ; debug_assert ! ( handles is_empty ( ) " " ) ; Ok ( combined_bytes ) }
Encode the referred parameter into persistent binary form.
Encode the referred parameter into persistent binary form .
body
&mut T
body
&mut T