[][src]Function arcon::prelude::helpers::serialise_msg

pub fn serialise_msg(
    src: &ActorPath,
    dst: &ActorPath,
    msg: Box<dyn Serialisable + 'static>
) -> Result<Bytes, SerError>

Serializes the provided actor paths and message into a new [BytesMut]

Format

The serialized format is: source ActorPath path_type u8 path [u8; 16] if UniquePath, else a length-prefixed UTF-8 encoded string destination ActorPath (see above for specific format) ser_id u64 message raw bytes