[][src]Function kompact::prelude::ser_helpers::serialise_to_serialised

pub fn serialise_to_serialised<S: ?Sized>(
    ser: &S
) -> Result<Serialised, SerError> where
    S: Serialisable

Creates a new Serialised from the provided fields

It allocates a new BytesMut according to the message's size hint. The message's serialised data is then stored in this buffer.