Function maidsafe_utilities::serialisation::serialise_with_limit [] [src]

pub fn serialise_with_limit<T>(data: &T,
                               size_limit: Bounded)
                               -> Result<Vec<u8>, SerialisationError> where T: Serialize

Serialise an Serialize type with max limit specified.