[−][src]Function kompact::prelude::ser_helpers::serialiser_to_serialised
pub fn serialiser_to_serialised<T, S: ?Sized>(
t: &T,
ser: &S
) -> Result<Serialised, SerError> where
T: Debug,
S: Serialiser<T>,
Creates a new Serialised from the provided fields and serialiser ser
It allocates a new BytesMut according to the message's size hint. The message's serialised data is then stored in this buffer.