[][src]Function kompact::helpers::serialise_to_recv_envelope

pub fn serialise_to_recv_envelope(
    src: ActorPath,
    dst: ActorPath,
    msg: Box<dyn Serialisable>
) -> Result<MsgEnvelope, SerError>

Creates a new ReceiveEnvelope from the provided fields, allocating a new BytesMut according to the message's size hint. The message's serialized data is stored in this buffer.